Fix slash bug in url class.
This commit is contained in:
parent
095c236234
commit
77331efc9d
|
@ -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, '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue