mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-07 18:18:18 +01:00
Merge branch 'develop' into patch-1
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user