diff options
Diffstat (limited to 'core/Url.php')
-rw-r--r-- | core/Url.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Url.php b/core/Url.php index 3a52cc9806..376138b608 100644 --- a/core/Url.php +++ b/core/Url.php @@ -630,8 +630,9 @@ class Url return true; } - if (Common::stringEndsWith($siteHost, $host)) { - return; + if (Common::stringEndsWith($siteHost, '.' . $host)) { + // allow subdomains + return true; } } } |