Skip to content

Commit ee54f8b

Browse files
committed
fix(selectfield,cheeckboxesfield): too much escaping
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent 43ae998 commit ee54f8b

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

inc/field/checkboxesfield.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ public function isValidValue($value): bool {
214214
return true;
215215
}
216216

217-
$value = Toolbox::stripslashes_deep($value);
218217
foreach ($value as $item) {
219218
if (trim($item) == '') {
220219
return false;

inc/field/selectfield.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ public function isValidValue($value): bool {
109109
if ($value == '0') {
110110
return true;
111111
}
112-
$value = Toolbox::stripslashes_deep($value);
113112
$value = trim($value);
114113
return in_array($value, $this->getAvailableValues());
115114
}

0 commit comments

Comments
 (0)