mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 06:26:16 -04:00
fixing jsverify rngStates 0220439df7ec68a15b, 015c81b7afd06e4293 & 041e3d57692b08fc4a
This commit is contained in:
parent
2d11d7b29e
commit
8a6415ef5f
5 changed files with 17 additions and 16 deletions
|
@ -630,7 +630,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||
let containsLinks = args[0].indexOf('<a') !== -1;
|
||||
|
||||
// prevent double encoding, when we insert into a text node
|
||||
if (!containsLinks || $element === null) {
|
||||
if (containsLinks || $element === null) {
|
||||
for (let i = 0; i < args.length; ++i) {
|
||||
// parameters (i > 0) may never contain HTML as they may come from untrusted parties
|
||||
if (i > 0 || !containsLinks) {
|
||||
|
@ -657,7 +657,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||
$element.html(output);
|
||||
} else {
|
||||
// text node takes care of entity encoding
|
||||
$element.text(output);
|
||||
$element.text(output);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue