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
path: root/core
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2019-05-17 12:22:50 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2019-05-17 12:22:50 +0300
commit813c2e2ff9c4f36f816c6bbf60abfaeba8f59a57 (patch)
tree40d7d4295677815015f5676ba00b4264a133f27d /core
parent10d3b200f10f5be010870b37eb08f4689acbc649 (diff)
Store matomo url only if host is valid (#14422)
fix #11029
Diffstat (limited to 'core')
-rw-r--r--core/SettingsPiwik.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/SettingsPiwik.php b/core/SettingsPiwik.php
index a51704217e..32f89309c4 100644
--- a/core/SettingsPiwik.php
+++ b/core/SettingsPiwik.php
@@ -201,6 +201,7 @@ class SettingsPiwik
$host = Url::getHostFromUrl($currentUrl);
if (strlen($currentUrl) >= strlen('http://a/')
+ && Url::isValidHost($host)
&& !Url::isLocalHost($host)) {
self::overwritePiwikUrl($currentUrl);
}