From bdbc213c321474509fe6f504d406ab179ff7ab79 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 2 Jun 2022 12:29:07 +0200 Subject: [PATCH] Limit the $limit to a maximum of 200 Signed-off-by: Joas Schilling --- lib/Data.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Data.php b/lib/Data.php index 95452656f..710d39ad0 100755 --- a/lib/Data.php +++ b/lib/Data.php @@ -183,6 +183,8 @@ public function get(GroupHelper $groupHelper, UserSettings $userSettings, $user, throw new \OutOfBoundsException('Invalid user', 1); } + $limit = min(200, $limit); + $activeFilter = null; try { $activeFilter = $this->activityManager->getFilterById($filter);