summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2015-02-02 17:40:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-10 23:07:47 +0000
commit514b7cf3bf4db33714bc7b58e68c2d0107717c59 (patch)
tree50d46819fb744d5a5b41b20fbc4cae0f158ab49d /bitbake/lib/toaster/toastergui/static/js/layerdetails.js
parent16a9667b5ce2f9271c170e16244c4c9d62e03477 (diff)
downloadast2050-yocto-poky-514b7cf3bf4db33714bc7b58e68c2d0107717c59.zip
ast2050-yocto-poky-514b7cf3bf4db33714bc7b58e68c2d0107717c59.tar.gz
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>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/layerdetails.js')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/layerdetails.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
index 2793225..9339ae8 100644
--- a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
+++ b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
@@ -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();
OpenPOWER on IntegriCloud