mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #2726 from 3Dgoo/patch-1
FIX Ensure search form start var is not a negative number
This commit is contained in:
commit
3ef3a93fb7
@ -163,7 +163,7 @@ class SearchForm extends Form
|
|||||||
$keywords = $this->addStarsToKeywords($keywords);
|
$keywords = $this->addStarsToKeywords($keywords);
|
||||||
|
|
||||||
$pageLength = $this->getPageLength();
|
$pageLength = $this->getPageLength();
|
||||||
$start = $request->requestVar('start') ?: 0;
|
$start = max(0, (int)$request->requestVar('start'));
|
||||||
|
|
||||||
$booleanSearch =
|
$booleanSearch =
|
||||||
strpos($keywords, '"') !== false ||
|
strpos($keywords, '"') !== false ||
|
||||||
|
Loading…
Reference in New Issue
Block a user