From 77331efc9d4ed8ee839c121fa49bb3f30af3c24a Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 27 Jul 2011 08:51:11 -0500 Subject: [PATCH] Fix slash bug in url class. --- system/url.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/url.php b/system/url.php index 0346f019..30cd3c2d 100644 --- a/system/url.php +++ b/system/url.php @@ -25,7 +25,7 @@ public static function to($url = '', $https = false, $asset = false) $base = ($https and strpos($base, 'http://') === 0) ? 'https://'.substr($base, 7) : $base; - return $base.'/'.ltrim($url, '/'); + return rtrim($base, '/').'/'.ltrim($url, '/'); } /**