Skip to content
Snippets Groups Projects
Verified Commit 7cbc672e authored by Damien's avatar Damien
Browse files

FEAT #13671 TIME 0:45 Installer db with space

parent 23e766ff
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ class InstallerController
return $response->withStatus(400)->withJson(['errors' => 'QueryParams name is empty or not a string']);
} elseif (!Validator::length(1, 50)->validate($queryParams['name'])) {
return $response->withStatus(400)->withJson(['errors' => 'QueryParams name length is not valid']);
} elseif (strpbrk($queryParams['name'], '";') !== false) {
} elseif (strpbrk($queryParams['name'], '"; ') !== false) {
return $response->withStatus(400)->withJson(['errors' => 'QueryParams name is not valid']);
}
......@@ -286,7 +286,7 @@ class InstallerController
return $response->withStatus(400)->withJson(['errors' => 'Body name is empty or not a string']);
} elseif (!Validator::length(1, 50)->validate($body['name'])) {
return $response->withStatus(400)->withJson(['errors' => 'Body name length is not valid']);
} elseif (strpbrk($body['name'], '";') !== false) {
} elseif (strpbrk($body['name'], '"; ') !== false) {
return $response->withStatus(400)->withJson(['errors' => 'Body name is not valid']);
} elseif (!Validator::stringType()->notEmpty()->validate($body['customId'])) {
return $response->withStatus(400)->withJson(['errors' => 'Body customId is empty or not a string']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment