diff options
author | Miguel González <infinit89@gmail.com> | 2015-03-30 05:00:21 +0200 |
---|---|---|
committer | Miguel González <infinit89@gmail.com> | 2015-03-30 05:00:21 +0200 |
commit | 361750a8eb48c91d4a741b81bcb5572388742fed (patch) | |
tree | 25ee4158e97c01645c6d8180672e129c19f217f7 /system/libraries | |
parent | 138d0f54fc92ec57f48865850f84594c59b50797 (diff) |
Fixes pagination with relative URL
When base_url is a URL based on protocol, like "//www.google.com" the double slash regex kills the first "//".
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 d63f61df6..76437f4a5 100644 --- a/system/libraries/Pagination.php +++ b/system/libraries/Pagination.php @@ -644,7 +644,7 @@ class CI_Pagination { // Kill double slashes. Note: Sometimes we can end up with a double slash // in the penultimate link so we'll kill all double slashes. - $output = preg_replace('#([^:])//+#', '\\1/', $output); + $output = preg_replace('#([^:"])//+#', '\\1/', $output); // Add the wrapper HTML if exists return $this->full_tag_open.$output.$this->full_tag_close; |