upgrade DOMpurify to 2.1.1 - obsoleting the SAFE_FOR_JQUERY flag
This commit is contained in:
@@ -19,7 +19,7 @@ require('./prettify');
|
||||
global.prettyPrint = window.PR.prettyPrint;
|
||||
global.prettyPrintOne = window.PR.prettyPrintOne;
|
||||
global.showdown = require('./showdown-1.9.1');
|
||||
global.DOMPurify = require('./purify-2.0.14');
|
||||
global.DOMPurify = require('./purify-2.1.1');
|
||||
global.baseX = require('./base-x-3.0.7').baseX;
|
||||
global.Legacy = require('./legacy').Legacy;
|
||||
require('./bootstrap-3.3.7');
|
||||
|
||||
@@ -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
|
||||
|
||||
File diff suppressed because one or more lines are too long
2
js/purify-2.1.1.js
Normal file
2
js/purify-2.1.1.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user