Skip to content

Commit

Permalink
Merge pull request #817 from nextcloud/backport/815/stable23
Browse files Browse the repository at this point in the history
[stable23] Limit the $limit to a maximum of 200
  • Loading branch information
PVince81 authored Jun 2, 2022
2 parents 1ff2566 + bdbc213 commit 71ab34c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 71ab34c

Please sign in to comment.