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:
authorStefan Giehl <stefan@matomo.org>2020-05-07 00:10:00 +0300
committerGitHub <noreply@github.com>2020-05-07 00:10:00 +0300
commit53f3e32686d848ca24295e1320e7ac50932b031e (patch)
tree22e34949ac8f2bf8bed2890cf434f157c602e230 /core/Tracker/Request.php
parent686e7495bb83ff9e6ca63109225347571d20a272 (diff)
Require authentication when sending custom ip with tracking requests (#15888)
Diffstat (limited to 'core/Tracker/Request.php')
-rw-r--r--core/Tracker/Request.php2
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;