mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
chore: use lowercase for check
This commit is contained in:
@@ -40,7 +40,7 @@ class Origin extends Validator
|
||||
}
|
||||
|
||||
$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)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user