diff --git a/includes/js/functions.js b/includes/js/functions.js index 8d06dc008..e394e64a9 100755 --- a/includes/js/functions.js +++ b/includes/js/functions.js @@ -397,22 +397,26 @@ function simplePurifier( bSvgFilters = false ) { - return DOMPurify.sanitize( - sanitizeDom(text) - .replaceAll('<', '<') - .replaceAll('<', '<') - .replaceAll('<', '<') - .replaceAll('>', '>') - .replaceAll('>', '>') - .replaceAll('>', '>') - .replaceAll('&', '&') - .replaceAll('&', '&') - .replaceAll('&', '&') - .replaceAll('"', '"') - .replaceAll('";', '"') - .replaceAll('"', '"') - .replaceAll(''', "'"), - {USE_PROFILES: {html:bHtml, svg:bSvg, svgFilters: bSvgFilters}} + return sanitizeDom( + DOMPurify.sanitize( + text + .replaceAll('<', '<') + .replaceAll('<', '<') + .replaceAll('<', '<') + .replaceAll('<', '<') + .replaceAll('>', '>') + .replaceAll('>', '>') + .replaceAll('>', '>') + .replaceAll('>', '>') + .replaceAll('&', '&') + .replaceAll('&', '&') + .replaceAll('&', '&') + .replaceAll('"', '"') + .replaceAll('";', '"') + .replaceAll('"', '"') + .replaceAll(''', "'"), + {USE_PROFILES: {html:bHtml, svg:bSvg, svgFilters: bSvgFilters}} + ) ); } diff --git a/pages/folders.js.php b/pages/folders.js.php index adcfb3bb3..69a92257c 100755 --- a/pages/folders.js.php +++ b/pages/folders.js.php @@ -117,6 +117,7 @@ 'iconSelected': purifyRes.arrFields['iconSelected'], } console.log(data) + return false; // Launch action $.post( 'sources/folders.queries.php', {