Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Url.php')
-rw-r--r--core/Url.php5
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;
}
}
}