Skip to content

Commit

Permalink
Removed deprecated flag FILTER_FLAG_SCHEME_REQUIRED
Browse files Browse the repository at this point in the history
  • Loading branch information
Renan Luiz Vendramini committed Feb 12, 2021
1 parent 8cf26f0 commit 240f51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/URLParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private function sanitizeValueString($string) {
}

private function validateUrl($url) {
if (!filter_var($url, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED))
if (!filter_var($url, FILTER_VALIDATE_URL))
throw new InvalidArgumentException("'{$url}' is not a valid URL");
}
}

0 comments on commit 240f51b

Please sign in to comment.