diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Pagination.php | 2 |
1 files changed, 1 insertions, 1 deletions
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))
|