Merge pull request #10386 from appwrite/fix-domain-valdiator

Fix domain validator
This commit is contained in:
Jake Barnby 2025-08-27 14:51:50 +12:00 committed by GitHub
commit ca9e697ca3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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());
}