upgrade DOMpurify to 2.1.1 - obsoleting the SAFE_FOR_JQUERY flag

This commit is contained in:
El RIDO 2020-10-08 19:00:04 +02:00
parent c37052fe82
commit f66c690fc0
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
7 changed files with 9 additions and 10 deletions

View file

@ -5613,8 +5613,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
I18n.loadTranslations();
DOMPurify.setConfig({
ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|magnet):)/i,
SAFE_FOR_JQUERY: true
ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|magnet):)/i
});
// Add a hook to make all links open a new window