N°5318 - Fix DBObject::CheckValue() messages being HTML encoded when not necessary (#326)

* Rollback N°4898 - Security fix

* N°5318 - security fix
This commit is contained in:
Anne-Catherine
2022-08-12 17:50:14 +02:00
committed by GitHub
parent 35a8b501c9
commit d7e5705520
4 changed files with 21 additions and 18 deletions

View File

@@ -1614,7 +1614,10 @@ EOF
}
else
{
$sError = '<p>'.implode('</p></p>',$aErrors)."</p>\n";
$aErrorsToDisplay = array_map(function($sError) {
return utils::HtmlEntities($sError);
}, $aErrors);
$sError = '<p>'.implode('</p></p>',$aErrorsToDisplay)."</p>\n";
}
}
else