From ac62d909b9897a68fbf11e824a9175017eb27546 Mon Sep 17 00:00:00 2001 From: rugk Date: Tue, 11 Feb 2025 17:32:40 +0100 Subject: [PATCH] Remove SAFE_FOR_JQUERY from DOMPurify as it has been removed DOMPurify removed this configuration option, so I guess it has no effect and can be removed. See docs: https://github.com/cure53/DOMPurify?tab=readme-ov-file#removed-configuration > SAFE_FOR_JQUERY 2.1.0 No replacement required. The PR https://github.com/cure53/DOMPurify/pull/474 also links the commits, which removed it. --- js/privatebin.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/privatebin.js b/js/privatebin.js index b67de8ad..1114ad04 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -58,7 +58,6 @@ jQuery.PrivateBin = (function($, RawDeflate) { */ const purifyHtmlConfig = { ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|magnet):)/i, - SAFE_FOR_JQUERY: true, USE_PROFILES: { html: true }