Merge branch 'develop' into patch-1

This commit is contained in:
Zephyriony
2024-03-16 14:37:54 +01:00
committed by GitHub
63 changed files with 426 additions and 455 deletions

View File

@@ -7646,7 +7646,7 @@ function dol_string_onlythesehtmlattributes($stringtoclean, $allowed_attributes
$stringtoclean = '<?xml encoding="UTF-8"><html><body>'.$stringtoclean.'</body></html>';
// Warning: loadHTML does not support HTML5 on old libxml versions.
$dom = new DOMDocument(null, 'UTF-8');
$dom = new DOMDocument('', 'UTF-8');
$dom->loadHTML($stringtoclean, LIBXML_ERR_NONE | LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD | LIBXML_NONET | LIBXML_NOWARNING | LIBXML_NOXMLDECL);
if ($dom instanceof DOMDocument) {
@@ -10008,6 +10008,7 @@ function dol_eval($s, $returnvalue = 1, $hideerrors = 1, $onlysimplestring = '1'
} else {
eval($s);
}
return '';
}
} catch (Error $e) {
if ($isObBufferActive) {