addressing false positive jsverify rngState 85f362db8950cea741
This commit is contained in:
parent
aa377038a0
commit
12c83a13c7
@ -88,7 +88,12 @@ describe('AttachmentViewer', function () {
|
||||
if (prefix.indexOf('<a') === -1 && postfix.indexOf('<a') === -1) {
|
||||
result = $('<textarea>').text((prefix + filename + postfix)).text();
|
||||
} else {
|
||||
result = prefix + $.PrivateBin.Helper.htmlEntities(filename) + postfix;
|
||||
result = DOMPurify.sanitize(
|
||||
prefix + $.PrivateBin.Helper.htmlEntities(filename) + postfix, {
|
||||
ALLOWED_TAGS: ['a', 'i', 'span'],
|
||||
ALLOWED_ATTR: ['href', 'id']
|
||||
}
|
||||
);
|
||||
}
|
||||
if (filename.length) {
|
||||
results.push(
|
||||
|
Loading…
Reference in New Issue
Block a user