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:
authormattab <matthieu.aubry@gmail.com>2014-12-29 04:56:41 +0300
committermattab <matthieu.aubry@gmail.com>2014-12-29 04:56:59 +0300
commit8d792ad9940aa8545174facd8a68f723763e38ec (patch)
treec51d1fb3dc22e533d3e2f3f0cdbd96fadb98b032
parent3a054d3f2e03c25584d00c673bb136416423127e (diff)
Trim the URLs to prevent extra space from causing issue
-rw-r--r--core/Tracker/VisitExcluded.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/Tracker/VisitExcluded.php b/core/Tracker/VisitExcluded.php
index 57403b723e..f3d8d0cab2 100644
--- a/core/Tracker/VisitExcluded.php
+++ b/core/Tracker/VisitExcluded.php
@@ -271,6 +271,7 @@ class VisitExcluded
$referrerUrl = $this->request->getParam('urlref');
foreach($spamHosts as $spamHost) {
+ $spamHost = trim($spamHost);
if ( strpos($referrerUrl, $spamHost) !== false) {
Common::printDebug('Referrer URL is a known spam: ' . $spamHost);
return true;