Skip to content
Extraits de code Groupes Projets
Valider 9f861cc2 rédigé par sgiehl's avatar sgiehl
Parcourir les fichiers

fixes #12034 - disallow fetching more than 100 visits in the visitor profile

parent 82c79d08
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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,
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter