diff --git a/system/url.php b/system/url.php index afb5baf1..52fb6c71 100644 --- a/system/url.php +++ b/system/url.php @@ -31,7 +31,7 @@ public static function to($url = '', $https = false) $base = 'https://'.substr($base, 7); } - return rtrim($base, '/').'/'.ltrim($url, '/'); + return rtrim($base, '/').'/'.trim($url, '/'); } /**