mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 06:26:16 -04:00
addressing jsverifyRngState 8b8f0d4ec2a67139b5, fixes HTML injection via filename, closes #554
This commit is contained in:
parent
ddaee6486d
commit
8d0ac336d2
5 changed files with 11 additions and 6 deletions
|
@ -2795,8 +2795,12 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||
// move elemement to new place
|
||||
$attachmentLink.appendTo($element);
|
||||
|
||||
// update text
|
||||
I18n._($attachmentLink, label, $attachmentLink.attr('download'));
|
||||
// update text - ensuring no HTML is inserted into the text node
|
||||
I18n._(
|
||||
$attachmentLink,
|
||||
$('<div />').text(label).html(),
|
||||
$('<div />').text($attachmentLink.attr('download')).html()
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue