mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-17 21:38:10 -04:00
addressing false positive jsverify rngState 0dc9b3f5704ad26e18
This commit is contained in:
@@ -24,8 +24,12 @@ describe('AttachmentViewer', function () {
|
||||
),
|
||||
results = [],
|
||||
result = '';
|
||||
// text node of attachment will truncate at null byte
|
||||
if (filename === '\u0000') {
|
||||
filename = '';
|
||||
}
|
||||
prefix = prefix.replace(/%(s|d)/g, '%%');
|
||||
postfix = postfix.replace(/%(s|d)/g, '%%');
|
||||
postfix = postfix.replace(/%(s|d)/g, '%%').replace(/<|>/g, '');
|
||||
$('body').html(
|
||||
'<div id="attachmentPreview" class="col-md-12 text-center hidden"></div>' +
|
||||
'<div id="attachment" class="hidden"></div>' +
|
||||
@@ -126,4 +130,3 @@ describe('AttachmentViewer', function () {
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user