Skip to content

Commit ba78e93

Browse files
committed
fix(textareafield): missing escape before compare
1 parent 9fb70ed commit ba78e93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/field/textareafield.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,15 +224,15 @@ public function getValueForTargetText($domain, $richText): ?string {
224224
}
225225

226226
public function equals($value): bool {
227-
return $this->value == $value;
227+
return $this->value == Sanitizer::unsanitize($value);
228228
}
229229

230230
public function notEquals($value): bool {
231231
return !$this->equals($value);
232232
}
233233

234234
public function greaterThan($value): bool {
235-
return $this->value > $value;
235+
return $this->value > Sanitizer::unsanitize($value);
236236
}
237237

238238
public function lessThan($value): bool {

0 commit comments

Comments
 (0)