From 98ea0c0e6fe81ea4eee6af3af0142cace862d258 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 6 Feb 2012 22:48:34 -0600 Subject: [PATCH] fix bug in url::to. --- laravel/url.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/laravel/url.php b/laravel/url.php index 11b142dc..f207b948 100644 --- a/laravel/url.php +++ b/laravel/url.php @@ -27,8 +27,7 @@ public static function base() { $base = $url; } - - if (isset($_SERVER['HTTP_HOST'])) + elseif (isset($_SERVER['HTTP_HOST'])) { $protocol = (Request::secure()) ? 'https://' : 'http://';