mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
chore: use lowercase for check
This commit is contained in:
parent
f8e74d073a
commit
1555abcbd6
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ class Origin extends Validator
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->scheme = $this->parseScheme($origin);
|
$this->scheme = $this->parseScheme($origin);
|
||||||
$this->host = parse_url($origin, PHP_URL_HOST);
|
$this->host = strtolower(parse_url($origin, PHP_URL_HOST));
|
||||||
|
|
||||||
if (!empty($this->scheme) && !in_array($this->scheme, $this->schemes, true)) {
|
if (!empty($this->scheme) && !in_array($this->scheme, $this->schemes, true)) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue