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:
Diffstat (limited to 'core/Tracker/Request.php')
-rw-r--r--core/Tracker/Request.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/Tracker/Request.php b/core/Tracker/Request.php
index 8ded0dc7a2..212abbd0d2 100644
--- a/core/Tracker/Request.php
+++ b/core/Tracker/Request.php
@@ -551,12 +551,11 @@ class Request
public function getForcedUserId()
{
$userId = $this->getParam('uid');
-
if (strlen($userId) > 0) {
return $userId;
}
- return null;
+ return false;
}
public function getForcedVisitorId()
@@ -608,8 +607,8 @@ class Request
* @param $userId
* @return string
*/
- private function getUserIdHashed($userId)
+ public function getUserIdHashed($userId)
{
- return sha1($userId);
+ return substr( sha1( $userId ), 0, 16);
}
}