mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
sanitized_url add in parse url
This commit is contained in:
parent
81fc5ee6b3
commit
3a2d6da052
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ class URL extends Validator
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!empty($this->allowedSchemes) && !\in_array(\parse_url($value, PHP_URL_SCHEME), $this->allowedSchemes)) {
|
||||
if (!empty($this->allowedSchemes) && !\in_array(\parse_url($sanitized_url, PHP_URL_SCHEME), $this->allowedSchemes)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue