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:
authorsgiehl <stefan@piwik.org>2017-09-13 15:56:55 +0300
committersgiehl <stefan@piwik.org>2017-09-13 15:56:55 +0300
commit9f861cc2019edf056d9e4a1f07dbb07da2960402 (patch)
tree1ffcf0af25777322d5a37542aa2afa6b8ab8ec3d /plugins
parent82c79d08a8ac29b01d8de413db4314abc3085bc5 (diff)
fixes #12034 - disallow fetching more than 100 visits in the visitor profile
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Live/Controller.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/Live/Controller.php b/plugins/Live/Controller.php
index cdcbea995c..7256eccdc2 100644
--- a/plugins/Live/Controller.php
+++ b/plugins/Live/Controller.php
@@ -144,6 +144,11 @@ class Controller extends \Piwik\Plugin\Controller
{
$filterLimit = Common::getRequestVar('filter_offset', 0, 'int');
$startCounter = Common::getRequestVar('start_number', 0, 'int');
+
+ if ($startCounter >= API::VISITOR_PROFILE_MAX_VISITS_TO_AGGREGATE) {
+ return; // do not return more visits than configured for profile
+ }
+
$nextVisits = Request::processRequest('Live.getLastVisitsDetails', array(
'segment' => self::getSegmentWithVisitorId(),
'filter_limit' => VisitorProfile::VISITOR_PROFILE_MAX_VISITS_TO_SHOW,