Debug MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY

This commit is contained in:
Laurent Destailleur (aka Eldy)
2025-01-06 12:56:24 +01:00
parent 7820af834e
commit 3bfd6c1e30
2 changed files with 4 additions and 2 deletions

View File

@@ -772,9 +772,11 @@ class SecurityTest extends CommonClassTest
// Set options for cleaning data
$conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML = 0; // disabled, does not work on HTML5 and some libxml versions
// Enabled option MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY if possible
// Enable option MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY if possible
if (extension_loaded('tidy') && class_exists("tidy")) {
$conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY = 1;
} else {
$conf->global->MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY = 0;
}
$conf->global->MAIN_RESTRICTHTML_REMOVE_ALSO_BAD_ATTRIBUTES = 0; // disabled, does not work on HTML5 and some libxml versions