diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-05-07 00:10:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-07 00:10:00 +0300 |
commit | 53f3e32686d848ca24295e1320e7ac50932b031e (patch) | |
tree | 22e34949ac8f2bf8bed2890cf434f157c602e230 /core/Tracker/Request.php | |
parent | 686e7495bb83ff9e6ca63109225347571d20a272 (diff) |
Require authentication when sending custom ip with tracking requests (#15888)
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 a2305317cd..48fecc103b 100644 --- a/core/Tracker/Request.php +++ b/core/Tracker/Request.php @@ -892,7 +892,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; |