diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-05-17 12:22:50 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-05-17 12:22:50 +0300 |
commit | 813c2e2ff9c4f36f816c6bbf60abfaeba8f59a57 (patch) | |
tree | 40d7d4295677815015f5676ba00b4264a133f27d /core | |
parent | 10d3b200f10f5be010870b37eb08f4689acbc649 (diff) |
Store matomo url only if host is valid (#14422)
fix #11029
Diffstat (limited to 'core')
-rw-r--r-- | core/SettingsPiwik.php | 1 |
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); } |