fix logic of preg_match function

This commit is contained in:
Harald Welte 2023-12-02 23:20:44 +01:00
parent 9d4f928ee2
commit 641639f901
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class SmcCartValidator implements CartValidatorInterface
if ($input === null) {
return true;
}
if (preg_match('/[^\p{Common}\p{Latin}]/u', $input)) {
if (preg_match('/[^\p{Common}\p{Latin}]/u', $input) === 0) {
return true;
}
return false;