From 31d363b39fe8ec09e1af3b4441f9bd5844bf8224 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 2 May 2007 01:18:58 +0000 Subject: // Prep the current page - no funny business! $this->cur_page = preg_replace("/[a-z\-]/", "", $this->cur_page); became // Prep the current page - no funny business! $this->cur_page = (int) $this->cur_page; --- system/libraries/Pagination.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php index 27104c95c..8ea0dab19 100644 --- a/system/libraries/Pagination.php +++ b/system/libraries/Pagination.php @@ -122,7 +122,7 @@ class CI_Pagination { $this->cur_page = $CI->uri->segment($this->uri_segment); // Prep the current page - no funny business! - $this->cur_page = preg_replace("/[a-z\-]/", "", $this->cur_page); + $this->cur_page = (int) $this->cur_page; } if ( ! is_numeric($this->cur_page)) -- cgit v1.2.3-24-g4f1b