mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 06:26:16 -04:00
Revert "[TEST] Try to disallow vulnerable cases" to remove accidentally committed file and statement that breaks the tests
This reverts commit ebc2d649c4
.
This commit is contained in:
parent
fd4492f229
commit
76eff6a87a
4 changed files with 2 additions and 45 deletions
|
@ -616,9 +616,6 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||
|
||||
// messageID may contain links, but only the first parameter, as that is from a trusted source (code or translation JSON files)
|
||||
let containsLinks = args[0].indexOf('<a') !== -1;
|
||||
if (containsLinks && args.length > 0) {
|
||||
throw new Error('security violation detected: do not concatenate links and untrusted data!');
|
||||
}
|
||||
|
||||
// format string
|
||||
let output = Helper.sprintf.apply(this, args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue