diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2018-11-25 16:33:08 +0300 |
---|---|---|
committer | Stefan Giehl <stefan@piwik.org> | 2018-11-25 16:33:08 +0300 |
commit | 2862316a05301755681305fbe060591c08d8c265 (patch) | |
tree | 84c2cf594a139f743f2dfee58ebd8175522e64d3 /core/Tracker/Request.php | |
parent | 762b6fa5ffba9f8d6f769f2bb8715b35be10cc4b (diff) |
Always fail during tracking when authentication is required but invalid token is used (#13675)
* Always fail during tracking when authentication is required but invalid token used
* fix tests
Diffstat (limited to 'core/Tracker/Request.php')
-rw-r--r-- | core/Tracker/Request.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Tracker/Request.php b/core/Tracker/Request.php index 102daf3519..3dcb078060 100644 --- a/core/Tracker/Request.php +++ b/core/Tracker/Request.php @@ -862,7 +862,7 @@ class Request if (!$this->isAuthenticated()) { Common::printDebug("WARN: Tracker API 'cip' was used with invalid token_auth"); - return IP::getIpFromHeader(); + throw new InvalidRequestParameterException("Tracker API 'cip' was used, requires valid token_auth"); } return $cip; |