1
0
mirror of https://gitnet.fr/deblan/gist.git synced 2021-08-14 08:30:49 +02:00

[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);
}