mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Ensure start var is not a negative number
This commit is contained in:
parent
101b17f16e
commit
ceeed65465
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user