commit | b93464db656fe017fe434b0fc917921ded88a12c | [log] [tgz] |
---|---|---|
author | admin <devnull@localhost> | Tue Oct 31 00:36:32 2006 +0000 |
committer | admin <devnull@localhost> | Tue Oct 31 00:36:32 2006 +0000 |
tree | 1ed24c1542b206a424e0b88e08f64a7932e31826 | |
parent | 784add749c806c52327615d47b8c6fabe2bd3438 [diff] [blame] |
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php index c66d570..07ad6a6 100644 --- a/system/libraries/Pagination.php +++ b/system/libraries/Pagination.php
@@ -120,8 +120,11 @@ if ($CI->uri->segment($this->uri_segment) != 0) { $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); } - + if ( ! is_numeric($this->cur_page)) { $this->cur_page = 0;