From 8eae68bde0ed5ba98d291d5afabc4e79abbbd9af Mon Sep 17 00:00:00 2001 From: Julien TANT Date: Sat, 21 Apr 2012 14:51:03 +0200 Subject: [PATCH] Change htmlentities to urlencode for link Signed-off-by: Julien TANT --- laravel/html.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/laravel/html.php b/laravel/html.php index bcb69628..1377c6cc 100644 --- a/laravel/html.php +++ b/laravel/html.php @@ -62,7 +62,7 @@ public static function decode($value) */ public static function script($url, $attributes = array()) { - $url = static::entities(URL::to_asset($url)); + $url = urlencode(URL::to_asset($url)); return ''.PHP_EOL; } @@ -90,7 +90,7 @@ public static function style($url, $attributes = array()) $attributes = $attributes + $defaults; - $url = static::entities(URL::to_asset($url)); + $url = urlencode(URL::to_asset($url)); return ''.PHP_EOL; } @@ -126,7 +126,7 @@ public static function span($value, $attributes = array()) */ public static function link($url, $title, $attributes = array(), $https = false) { - $url = static::entities(URL::to($url, $https)); + $url = urlencode(URL::to($url, $https)); return ''.static::entities($title).''; } @@ -157,7 +157,7 @@ public static function link_to_secure($url, $title, $attributes = array()) */ public static function link_to_asset($url, $title, $attributes = array(), $https = null) { - $url = static::entities(URL::to_asset($url, $https)); + $url = urlencode(URL::to_asset($url, $https)); return ''.static::entities($title).''; } @@ -267,7 +267,7 @@ public static function image($url, $alt = '', $attributes = array()) { $attributes['alt'] = $alt; - return ''; + return ''; } /**