Skip to content

Commit 9a43105

Browse files
authored
Sanitize page in Tag (#4170)
1 parent 991a243 commit 9a43105

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/tags/src/Content/Tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function __invoke(Document $document, Request $request)
6969
$slug = Arr::pull($queryParams, 'slug');
7070
$sort = Arr::pull($queryParams, 'sort');
7171
$q = Arr::pull($queryParams, 'q', '');
72-
$page = Arr::pull($queryParams, 'page', 1);
72+
$page = max(1, intval(Arr::pull($queryParams, 'page')));
7373
$filters = Arr::pull($queryParams, 'filter', []);
7474

7575
$sortMap = $this->getSortMap();

0 commit comments

Comments
 (0)