Skip to content

Commit

Permalink
fix(selectfield,cheeckboxesfield): too much escaping
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
btry committed May 7, 2021

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 43ae998 commit ee54f8b
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion inc/field/checkboxesfield.class.php
Original file line number Diff line number Diff line change
@@ -214,7 +214,6 @@ public function isValidValue($value): bool {
return true;
}

$value = Toolbox::stripslashes_deep($value);
foreach ($value as $item) {
if (trim($item) == '') {
return false;
1 change: 0 additions & 1 deletion inc/field/selectfield.class.php
Original file line number Diff line number Diff line change
@@ -109,7 +109,6 @@ public function isValidValue($value): bool {
if ($value == '0') {
return true;
}
$value = Toolbox::stripslashes_deep($value);
$value = trim($value);
return in_array($value, $this->getAvailableValues());
}

0 comments on commit ee54f8b

Please sign in to comment.