mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 18:37:17 +01:00
fix(comments): Put a limit to the limit
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
@@ -157,6 +157,7 @@ class CommentsPlugin extends ServerPlugin {
|
||||
if (!is_null($args['datetime'])) {
|
||||
$args['datetime'] = new \DateTime((string)$args['datetime']);
|
||||
}
|
||||
$args['limit'] = min(max(1, $args['limit']), 100);
|
||||
|
||||
$results = $node->findChildren($args['limit'], $args['offset'], $args['datetime']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user