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
1 changed files with 1 additions and 1 deletions

View File

@ -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; $base = ($https and strpos($base, 'http://') === 0) ? 'https://'.substr($base, 7) : $base;
return $base.'/'.ltrim($url, '/'); return rtrim($base, '/').'/'.ltrim($url, '/');
} }
/** /**