Merge remote-tracking branch 'origin/master' into webcrypto

This commit is contained in:
El RIDO 2018-09-02 10:07:57 +02:00
commit b191e2c437
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
8 changed files with 4 additions and 67 deletions

View file

@ -3092,7 +3092,7 @@ jQuery.PrivateBin = (function($, sjcl, RawDeflate) {
for (var i = 0; i < $head.length; ++i) {
newDoc.write($head[i].outerHTML);
}
newDoc.write('</head><body><pre>' + DOMPurify.sanitize(paste) + '</pre></body></html>');
newDoc.write('</head><body><pre>' + DOMPurify.sanitize($('<div />').text(paste).html()) + '</pre></body></html>');
newDoc.close();
}