diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-11-14 03:14:35 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-11-14 03:14:35 +0300 |
commit | 03d1687c49860afbf7aa056d983c442d5f0203b5 (patch) | |
tree | 36fcd7a896ac942a98d5e2f983ec62f0adbcc6ec /core/Tracker | |
parent | 7500b93cd45856832770c6bbfe030fc2e5d83033 (diff) |
refs #6661 also return HTTP 400 when idsite is 0
Diffstat (limited to 'core/Tracker')
-rw-r--r-- | core/Tracker/Request.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Tracker/Request.php b/core/Tracker/Request.php index b733ae30ea..110d0eb65d 100644 --- a/core/Tracker/Request.php +++ b/core/Tracker/Request.php @@ -12,6 +12,7 @@ use Exception; use Piwik\Common; use Piwik\Config; use Piwik\Cookie; +use Piwik\Exception\UnexpectedWebsiteFoundException; use Piwik\IP; use Piwik\Network\IPUtils; use Piwik\Piwik; @@ -390,7 +391,7 @@ class Request Piwik::postEvent('Tracker.Request.getIdSite', array(&$idSite, $this->params)); if ($idSite <= 0) { - throw new Exception('Invalid idSite: \'' . $idSite . '\''); + throw new UnexpectedWebsiteFoundException('Invalid idSite: \'' . $idSite . '\''); } return $idSite; |