addressing false positive jsverify rngState 0dc9b3f5704ad26e18

This commit is contained in:
El RIDO 2025-07-22 12:09:19 +02:00
parent 8f49bc4ad3
commit 47d7f5bc60
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -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 () {
); );
}); });
}); });