diff --git a/README.md b/README.md index cec70c92e..ec5af7ff4 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Alternatively, to run a demo of listmonk, you can quickly spin up a container `d - Fast bulk subscriber import - Custom subscriber attributes - Subscriber querying and segmentation with ad-hoc SQL -- Rich Go templates and WYSIWYG editor +- Rich Go HTML templates and WYSIWYG editor - Media gallery - Multi-threaded multi-SMTP e-mail queues for fast campaign delivery - HTTP/JSON APIs for everything diff --git a/handlers.go b/handlers.go index c9ec6d2a0..cf2b82552 100644 --- a/handlers.go +++ b/handlers.go @@ -186,8 +186,8 @@ func getPagination(q url.Values) pagination { perPage = 0 } else { ppi, _ := strconv.Atoi(pp) - if ppi < 1 || ppi > maxPerPage { - perPage = defaultPerPage + if ppi > 0 && ppi <= maxPerPage { + perPage = ppi } }