// 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;
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php
index 27104c9..8ea0dab 100644
--- a/system/libraries/Pagination.php
+++ b/system/libraries/Pagination.php
@@ -122,7 +122,7 @@
$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))