Skip to content

Commit c1cb72d

Browse files
committed
Bufixes:
- When no configuration value is returned, an exception was thrown in the admin. See issue #1.
1 parent c29a401 commit c1cb72d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Service/Validator/PostRequest.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ private function doValidatePostData($postData): bool
6969
}
7070
foreach ($this->patternsRetriever->load() as $pattern) {
7171
foreach ($postData as $data) {
72-
if (strpos($data, $pattern) !== false) {
72+
if (!$pattern) {
73+
continue;
74+
}
75+
if (strpos($data, (string) $pattern) !== false) {
7376
return false;
7477
}
7578
}

0 commit comments

Comments
 (0)