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:
1 parent
8fcb2b4058
commit
41b17822a5
2 files changed
+3
-2
No files matched your search
@@ -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