From: Belen Barros Pena Date: Mon, 2 Feb 2015 17:40:21 +0000 (+0000) Subject: toasterui: use text() instead of html() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b96457870b40ba60dd5c86d83c43093d09b70aea;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toasterui: use text() instead of html() Use the text() jQuery function instead of the html() one for security reasons. Signed-off-by: Belen Barros Pena --- diff --git a/lib/toaster/toastergui/static/js/layerdetails.js b/lib/toaster/toastergui/static/js/layerdetails.js index 2793225d0c1..9339ae8bccf 100644 --- a/lib/toaster/toastergui/static/js/layerdetails.js +++ b/lib/toaster/toastergui/static/js/layerdetails.js @@ -252,10 +252,10 @@ function layerDetailsPageInit (ctx) { break; } - alertMsg.append("You have deleted 1 layer from : "); + alertMsg.append("You have deleted 1 layer from : "); } - alertMsg.children("#layer-affected-name").html("" + ctx.layerVersion.name + ""); + 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();