From f948801369e097a807ca56efc00ec2fbbbe0bcb6 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 5 Jan 2013 16:15:18 -0600 Subject: [PATCH] Fix bug. --- laravel/url.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/url.php b/laravel/url.php index dc153cab..b8fb1f46 100644 --- a/laravel/url.php +++ b/laravel/url.php @@ -239,7 +239,7 @@ class URL { */ public static function to_asset($url, $https = null) { - if (static::valid($url) or starts_with($url, '//')) return $url; + if (static::valid($url) or static::valid('http:'.$url)) return $url; // If a base asset URL is defined in the configuration, use that and don't // try and change the HTTP protocol. This allows the delivery of assets