mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +00:00
Merge pull request #10386 from appwrite/fix-domain-valdiator
Fix domain validator
This commit is contained in:
commit
ca9e697ca3
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