chore: use lowercase for check

This commit is contained in:
Chirag Aggarwal 2025-06-26 19:59:58 +05:30
parent f8e74d073a
commit 1555abcbd6

View file

@ -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;