Просмотр исходного кода

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.
rugk 1 год назад
Родитель
Сommit
ac62d909b9
1 измененных файлов с 0 добавлено и 1 удалено
  1. 0 1
      js/privatebin.js

+ 0 - 1
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
         }