Skip to content

Commit

Permalink
palomar: better checkParams sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Sep 15, 2023
1 parent 8a7e7fd commit a7c32e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type PostSearchResult struct {
}

func checkParams(offset, size int) error {
if offset+size > 5000 || size > 1000 || offset > 1000 || offset < 0 || size < 0 {
if offset+size > 10000 || size > 250 || offset > 10000 || offset < 0 || size < 0 {
return fmt.Errorf("disallowed size/offset parameters")
}
return nil
Expand Down

0 comments on commit a7c32e3

Please sign in to comment.