mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
PR review changes
This commit is contained in:
@@ -54,8 +54,8 @@ class Host extends Validator
|
||||
}
|
||||
|
||||
$hostname = \parse_url($value, PHP_URL_HOST);
|
||||
$hostnameValudator = new Hostname($this->whitelist);
|
||||
return $hostnameValudator->isValid($hostname);
|
||||
$hostnameValidator = new Hostname($this->whitelist);
|
||||
return $hostnameValidator->isValid($hostname);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -124,6 +124,7 @@ class Origin extends Validator
|
||||
}
|
||||
|
||||
$validator = new Hostname($this->clients);
|
||||
|
||||
return $validator->isValid($host);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user