Commit e117d6b8 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 957826: XSS in the comment tag field

r=glob a=justdave
parent 2f7a7d31
......@@ -197,7 +197,7 @@ YAHOO.bugzilla.commentTagging = {
YAHOO.util.Event.stopEvent(evt);
}, tag);
li.appendChild(document.createTextNode(' (' + this.nos_by_tag[tag].length + ')'));
a.innerHTML = tag;
a.innerHTML = YAHOO.lang.escapeHTML(tag);
}
while (container.hasChildNodes()) {
container.removeChild(container.lastChild);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment