summaryrefslogtreecommitdiffstats
path: root/system/libraries/Pagination.php
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2007-05-02 03:18:58 +0200
committerDerek Allard <derek.allard@ellislab.com>2007-05-02 03:18:58 +0200
commit31d363b39fe8ec09e1af3b4441f9bd5844bf8224 (patch)
treec2e07a5d068a4153d55ba6328b8d2a31189a8921 /system/libraries/Pagination.php
parentd4e680ac433b5750c486f2eb4c96b864cf897ea1 (diff)
// 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;
Diffstat (limited to 'system/libraries/Pagination.php')
-rw-r--r--system/libraries/Pagination.php2
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))