mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +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:
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)
|
||||
|
||||
Reference in New Issue
Block a user