Merge pull request #2726 from 3Dgoo/patch-1

FIX Ensure search form start var is not a negative number
This commit is contained in:
Daniel Hensby 2022-03-29 13:09:45 +01:00 committed by GitHub
commit 3ef3a93fb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,7 +163,7 @@ class SearchForm extends Form
$keywords = $this->addStarsToKeywords($keywords);
$pageLength = $this->getPageLength();
$start = $request->requestVar('start') ?: 0;
$start = max(0, (int)$request->requestVar('start'));
$booleanSearch =
strpos($keywords, '"') !== false ||