diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-12-29 04:56:41 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-12-29 04:56:59 +0300 |
commit | 8d792ad9940aa8545174facd8a68f723763e38ec (patch) | |
tree | c51d1fb3dc22e533d3e2f3f0cdbd96fadb98b032 | |
parent | 3a054d3f2e03c25584d00c673bb136416423127e (diff) |
Trim the URLs to prevent extra space from causing issue
-rw-r--r-- | core/Tracker/VisitExcluded.php | 1 |
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; |