Skip to content

Commit

Permalink
fix z3r0 day expl01tz
Browse files Browse the repository at this point in the history
  • Loading branch information
leedo committed Sep 7, 2011
1 parent 22f072b commit 7c0202a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion share/static/alice.js
Expand Up @@ -9936,7 +9936,7 @@ Object.extend(Alice, {
}
else if (node.nodeValue.match(Alice.RE.url)) {
var span = new Element("SPAN");
span.innerHTML = node.nodeValue.replace(
span.innerHTML = node.nodeValue.escapeHTML().replace(
Alice.RE.url, '<a href="$1" target="_blank" rel="noreferrer">$1</a>');
node.parentNode.replaceChild(span, node);
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/alice/src/alice/util.js
Expand Up @@ -63,7 +63,7 @@ Object.extend(Alice, {
}
else if (node.nodeValue.match(Alice.RE.url)) {
var span = new Element("SPAN");
span.innerHTML = node.nodeValue.replace(
span.innerHTML = node.nodeValue.escapeHTML().replace(
Alice.RE.url, '<a href="$1" target="_blank" rel="noreferrer">$1</a>');
node.parentNode.replaceChild(span, node);
}
Expand Down

0 comments on commit 7c0202a

Please sign in to comment.