From a7c32e3d57e6db28a808be91d2ff48f9e02c8799 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Thu, 14 Sep 2023 17:11:08 -0700 Subject: [PATCH] palomar: better checkParams sanity check --- search/query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search/query.go b/search/query.go index 0e346be6a..d58ca9adb 100644 --- a/search/query.go +++ b/search/query.go @@ -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