fix urlencode prob

This commit is contained in:
Taylor Otwell 2012-04-24 22:47:35 -05:00
parent 8e05530869
commit 3a62036a9c
1 changed files with 5 additions and 5 deletions

View File

@ -62,7 +62,7 @@ public static function decode($value)
*/ */
public static function script($url, $attributes = array()) public static function script($url, $attributes = array())
{ {
$url = urlencode(URL::to_asset($url)); $url = URL::to_asset($url);
return '<script src="'.$url.'"'.static::attributes($attributes).'></script>'.PHP_EOL; return '<script src="'.$url.'"'.static::attributes($attributes).'></script>'.PHP_EOL;
} }
@ -90,7 +90,7 @@ public static function style($url, $attributes = array())
$attributes = $attributes + $defaults; $attributes = $attributes + $defaults;
$url = urlencode(URL::to_asset($url)); $url = URL::to_asset($url);
return '<link href="'.$url.'"'.static::attributes($attributes).'>'.PHP_EOL; return '<link href="'.$url.'"'.static::attributes($attributes).'>'.PHP_EOL;
} }
@ -126,7 +126,7 @@ public static function span($value, $attributes = array())
*/ */
public static function link($url, $title, $attributes = array(), $https = false) public static function link($url, $title, $attributes = array(), $https = false)
{ {
$url = urlencode(URL::to($url, $https)); $url = URL::to($url, $https);
return '<a href="'.$url.'"'.static::attributes($attributes).'>'.static::entities($title).'</a>'; return '<a href="'.$url.'"'.static::attributes($attributes).'>'.static::entities($title).'</a>';
} }
@ -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) public static function link_to_asset($url, $title, $attributes = array(), $https = null)
{ {
$url = urlencode(URL::to_asset($url, $https)); $url = URL::to_asset($url, $https);
return '<a href="'.$url.'"'.static::attributes($attributes).'>'.static::entities($title).'</a>'; return '<a href="'.$url.'"'.static::attributes($attributes).'>'.static::entities($title).'</a>';
} }
@ -267,7 +267,7 @@ public static function image($url, $alt = '', $attributes = array())
{ {
$attributes['alt'] = $alt; $attributes['alt'] = $alt;
return '<img src="'.urlencode(URL::to_asset($url)).'"'.static::attributes($attributes).'>'; return '<img src="'.URL::to_asset($url).'"'.static::attributes($attributes).'>';
} }
/** /**