Skip to content

Commit 1e66d18

Browse files
kitzbergermschwemer
authored andcommitted
[BUGFIX] Server-side validation of lettersOnly still on old faulty pattern
Follup up to 3e11601 Related: #1383
1 parent 535863a commit 1e66d18

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Classes/Domain/Validator/InputValidator.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ protected function isValidFieldInStringValidation(Field $field, mixed $value): v
137137

138138
// letters only
139139
case 5:
140-
if (!$this->validateLettersOnly($value)) {
140+
$pattern = $this->settings['validation']['lettersOnlyPattern'] ?? '^[A-Za-z]+$';
141+
if (!$this->validatePattern($value, $pattern)) {
141142
$this->setErrorAndMessage($field, 'validation.' . $field->getValidation());
142143
}
143144

0 commit comments

Comments
 (0)