summaryrefslogtreecommitdiffstats
path: root/bitbake
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
parent16a9667b5ce2f9271c170e16244c4c9d62e03477 (diff)
downloadpoky-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')
-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 2793225d0c..9339ae8bcc 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) {
252 break; 252 break;
253 } 253 }
254 254
255 alertMsg.append("You have deleted <strong>1</strong> layer from <a id=\"project-affected-name\"></a>: <span id=\"layer-affected-name\"></span>"); 255 alertMsg.append("You have deleted <strong>1</strong> layer from <a id=\"project-affected-name\"></a>: <strong id=\"layer-affected-name\"></strong>");
256 } 256 }
257 257
258 alertMsg.children("#layer-affected-name").html("<strong>" + ctx.layerVersion.name + "</strong>"); 258 alertMsg.children("#layer-affected-name").text(ctx.layerVersion.name);
259 alertMsg.children("#project-affected-name").text(ctx.projectName); 259 alertMsg.children("#project-affected-name").text(ctx.projectName);
260 alertMsg.children("#project-affected-name").attr("href", ctx.projectPageUrl); 260 alertMsg.children("#project-affected-name").attr("href", ctx.projectPageUrl);
261 $("#alert-area").show(); 261 $("#alert-area").show();