Skip to content

Commit

Permalink
fix(textareafield): missing escape before compare
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jul 26, 2022
1 parent 9fb70ed commit ba78e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/field/textareafield.class.php
Expand Up @@ -224,15 +224,15 @@ public function getValueForTargetText($domain, $richText): ?string {
}

public function equals($value): bool {
return $this->value == $value;
return $this->value == Sanitizer::unsanitize($value);
}

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

public function greaterThan($value): bool {
return $this->value > $value;
return $this->value > Sanitizer::unsanitize($value);
}

public function lessThan($value): bool {
Expand Down

0 comments on commit ba78e93

Please sign in to comment.