mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Fix domain validator
This commit is contained in:
parent
9fc39ddfce
commit
35579bfda1
1 changed files with 1 additions and 2 deletions
|
|
@ -67,8 +67,7 @@ class Get extends Action
|
|||
Database $dbForPlatform
|
||||
) {
|
||||
if ($type === 'rules') {
|
||||
$validator = new Domain($value);
|
||||
|
||||
$validator = new Domain();
|
||||
if (!$validator->isValid($value)) {
|
||||
throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, $validator->getDescription());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue