Skip to content

Commit

Permalink
fix filter_var syntax for domain-validator
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <[email protected]>
  • Loading branch information
szaimen committed Jan 25, 2024
1 parent 2aa4b4a commit 1cce2e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/domain-validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
http_response_code(400);
} elseif (strpos($domain, ':') !== false) {
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);
} elseif (filter_var($domain, FILTER_VALIDATE_IP)) {
http_response_code(400);
Expand Down

0 comments on commit 1cce2e5

Please sign in to comment.