1
0
Fork 0
forked from deblan/gist

[security] XSS injection patch

This commit is contained in:
Simon Vieille 2016-09-26 01:41:08 +02:00
parent 2ddfea60cc
commit 0529ec16d0

View file

@ -123,7 +123,7 @@
var $pre = $('<pre>')
.attr('class', 'brush: diff; syntaxhighlighter')
.html(diffContent);
.text(diffContent);
$('#diff-' + (u + 1).toString()).append($pre);
}