Update src/Appwrite/Network/Validator/AppwriteDomain.php

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Harsh Mahajan
2025-07-28 12:47:22 +05:30
committed by GitHub
co-authored by coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
parent 5932b859ff
commit 691e687a3f
@@ -57,9 +57,9 @@ class AppwriteDomain extends Validator
// Extract subdomain and check for sub-subdomains
$subdomain = \str_replace($suffix, '', \strtolower($value));
// If there's no subdomain (just the root domain), it's valid
// If there's no subdomain (just the root domain), it's invalid for this validator
if (empty($subdomain)) {
return true;
return false;
}
// Check if the subdomain contains dots (sub-subdomains)