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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user