Skip to content

Commit f948801

Browse files
committed
Fix bug.
1 parent cc0908c commit f948801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ protected static function convention($action, $parameters)
239239
*/
240240
public static function to_asset($url, $https = null)
241241
{
242-
if (static::valid($url) or starts_with($url, '//')) return $url;
242+
if (static::valid($url) or static::valid('http:'.$url)) return $url;
243243

244244
// If a base asset URL is defined in the configuration, use that and don't
245245
// try and change the HTTP protocol. This allows the delivery of assets

0 commit comments

Comments
 (0)