mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Update src/Appwrite/Network/Validator/AppwriteDomain.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
5932b859ff
commit
691e687a3f
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user