mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 16:28:43 +01:00
bitbake: toasterui: use text() instead of html()
Use the text() jQuery function instead of the html() one for security reasons. (Bitbake rev: b96457870b40ba60dd5c86d83c43093d09b70aea) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
16a9667b5c
commit
514b7cf3bf
@@ -252,10 +252,10 @@ function layerDetailsPageInit (ctx) {
|
||||
break;
|
||||
}
|
||||
|
||||
alertMsg.append("You have deleted <strong>1</strong> layer from <a id=\"project-affected-name\"></a>: <span id=\"layer-affected-name\"></span>");
|
||||
alertMsg.append("You have deleted <strong>1</strong> layer from <a id=\"project-affected-name\"></a>: <strong id=\"layer-affected-name\"></strong>");
|
||||
}
|
||||
|
||||
alertMsg.children("#layer-affected-name").html("<strong>" + ctx.layerVersion.name + "</strong>");
|
||||
alertMsg.children("#layer-affected-name").text(ctx.layerVersion.name);
|
||||
alertMsg.children("#project-affected-name").text(ctx.projectName);
|
||||
alertMsg.children("#project-affected-name").attr("href", ctx.projectPageUrl);
|
||||
$("#alert-area").show();
|
||||
|
||||
Reference in New Issue
Block a user