diff options
author | Derek Allard <derek.allard@ellislab.com> | 2007-05-02 03:18:58 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2007-05-02 03:18:58 +0200 |
commit | 31d363b39fe8ec09e1af3b4441f9bd5844bf8224 (patch) | |
tree | c2e07a5d068a4153d55ba6328b8d2a31189a8921 /system/libraries | |
parent | d4e680ac433b5750c486f2eb4c96b864cf897ea1 (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')
-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))
|