From 10b9e0ccbc4738dbf4769eb732affd633e8902aa Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 8 Nov 2019 17:34:06 +0000 Subject: [PATCH] fix page number logic --- core/event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/event.php b/core/event.php index 472fb9ba..db3ae5ba 100644 --- a/core/event.php +++ b/core/event.php @@ -120,7 +120,7 @@ class PageRequestEvent extends Event { if ($this->count_args() > $n) { $i = $this->get_arg($n); - if (!is_numeric($i) || $i <= 0) { + if (is_numeric($i) && int_escape($i) > 0) { return int_escape($i); } else { return 1;