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:
El RIDO 2020-01-18 07:12:03 +01:00
parent fd4492f229
commit 76eff6a87a
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
4 changed files with 2 additions and 45 deletions

View file

@ -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);