We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f458bf6 commit 81ce41bCopy full SHA for 81ce41b
SECURITY.md
@@ -22,7 +22,7 @@ Safer:
22
23
```php
24
function is_allowed_url($url, $allowed_url_schemes = ['http', 'https']) {
25
- $valid_url = filter_var($url, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED) !== false;
+ $valid_url = filter_var($url, FILTER_VALIDATE_URL) !== false;
26
if ($valid_url) {
27
$scheme = parse_url($url, PHP_URL_SCHEME);
28
return in_array($scheme, $allowed_url_schemes, true);
0 commit comments