N°7514 - hardening code

(cherry picked from commit b8b9423aa85c65b25f7fb3d9c5ba0933317474d7)
This commit is contained in:
Eric Espie
2024-06-18 17:40:20 +02:00
parent f63abd9b6f
commit 2804076bf6
4 changed files with 4 additions and 4 deletions

View File

@@ -53,7 +53,6 @@ class MultipleChoicesValidator extends AbstractValidator
private function CheckValueAgainstChoices(string $sValue, array &$aErrorMessages): void
{
if (false === array_key_exists($sValue, $this->aChoices)) {
$sValue = utils::HtmlEntities($sValue);
$aErrorMessages[] = "Value ({$sValue}) is not part of the field possible values list";
}
}

View File

@@ -37,7 +37,6 @@ class SelectObjectValidator extends AbstractValidator
$iObjectsCount = $oSetForExistingCurrentValue->CountWithLimit(1);
if ($iObjectsCount === 0) {
$value = utils::HtmlEntities($value);
return ["Value $value does not match the corresponding filter set"];
}