1
0
mirror of https://github.com/flarum/core.git synced 2025-08-03 15:07:53 +02:00

Sanitize page in Tag (#4170)

This commit is contained in:
Robert Korulczyk
2025-02-10 07:46:49 +01:00
committed by GitHub
parent 991a243c9d
commit 9a43105605

View File

@@ -69,7 +69,7 @@ class Tag
$slug = Arr::pull($queryParams, 'slug');
$sort = Arr::pull($queryParams, 'sort');
$q = Arr::pull($queryParams, 'q', '');
$page = Arr::pull($queryParams, 'page', 1);
$page = max(1, intval(Arr::pull($queryParams, 'page')));
$filters = Arr::pull($queryParams, 'filter', []);
$sortMap = $this->getSortMap();