mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-02-03 03:19:03 +08:00
fix filter_var syntax for domain-validator
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
2aa4b4aa11
commit
1cce2e535f
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ if (strpos($domain, '.') === false) {
|
||||||
http_response_code(400);
|
http_response_code(400);
|
||||||
} elseif (strpos($domain, ':') !== false) {
|
} elseif (strpos($domain, ':') !== false) {
|
||||||
http_response_code(400);
|
http_response_code(400);
|
||||||
} elseif (!filter_var($domain, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME) === false) {
|
} elseif (filter_var($domain, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME) === false) {
|
||||||
http_response_code(400);
|
http_response_code(400);
|
||||||
} elseif (filter_var($domain, FILTER_VALIDATE_IP)) {
|
} elseif (filter_var($domain, FILTER_VALIDATE_IP)) {
|
||||||
http_response_code(400);
|
http_response_code(400);
|
||||||
|
|
Loading…
Reference in a new issue