Fix slash bug in url class.

This commit is contained in:
Taylor Otwell
2011-07-27 08:51:11 -05:00
parent 095c236234
commit 77331efc9d

View File

@@ -25,7 +25,7 @@ class URL {
$base = ($https and strpos($base, 'http://') === 0) ? 'https://'.substr($base, 7) : $base;
return $base.'/'.ltrim($url, '/');
return rtrim($base, '/').'/'.ltrim($url, '/');
}
/**