From 361750a8eb48c91d4a741b81bcb5572388742fed Mon Sep 17 00:00:00 2001 From: Miguel González Date: Mon, 30 Mar 2015 05:00:21 +0200 Subject: 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 "//". --- system/libraries/Pagination.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') 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; -- cgit v1.2.3-24-g4f1b