mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-03 09:49:14 +02:00
addressing false positive jsverify rngState 0dc9b3f5704ad26e18
This commit is contained in:
parent
8f49bc4ad3
commit
47d7f5bc60
1 changed files with 5 additions and 2 deletions
|
@ -24,8 +24,12 @@ describe('AttachmentViewer', function () {
|
||||||
),
|
),
|
||||||
results = [],
|
results = [],
|
||||||
result = '';
|
result = '';
|
||||||
|
// text node of attachment will truncate at null byte
|
||||||
|
if (filename === '\u0000') {
|
||||||
|
filename = '';
|
||||||
|
}
|
||||||
prefix = prefix.replace(/%(s|d)/g, '%%');
|
prefix = prefix.replace(/%(s|d)/g, '%%');
|
||||||
postfix = postfix.replace(/%(s|d)/g, '%%');
|
postfix = postfix.replace(/%(s|d)/g, '%%').replace(/<|>/g, '');
|
||||||
$('body').html(
|
$('body').html(
|
||||||
'<div id="attachmentPreview" class="col-md-12 text-center hidden"></div>' +
|
'<div id="attachmentPreview" class="col-md-12 text-center hidden"></div>' +
|
||||||
'<div id="attachment" class="hidden"></div>' +
|
'<div id="attachment" class="hidden"></div>' +
|
||||||
|
@ -126,4 +130,3 @@ describe('AttachmentViewer', function () {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue