add fix for limit if negative
This commit is contained in:
parent
01c9984d99
commit
8c15ac8a0e
1 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,9 @@ impl SearchForm {
|
||||||
if limit > conf.caps.limits.max {
|
if limit > conf.caps.limits.max {
|
||||||
limit = conf.caps.limits.max;
|
limit = conf.caps.limits.max;
|
||||||
}
|
}
|
||||||
|
if limit < 1 {
|
||||||
|
limit = 1
|
||||||
|
}
|
||||||
|
|
||||||
return InternalSearchParameters {
|
return InternalSearchParameters {
|
||||||
q: self.q.clone(),
|
q: self.q.clone(),
|
||||||
|
|
Loading…
Reference in a new issue