escape:url now uses the (RFC 1738 compliant) rawurlencode()

This commit is contained in:
messju
2005-01-28 17:20:14 +00:00
parent e57e545e58
commit 1345545229
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@@ -1,3 +1,4 @@
- change escape:url use rawurlencode() instead of urlencode() (messju)
- make $smarty.const.FOO compile to "FOO", and not to "constant('foo')".
this is less code and a little faster execution. note that undefined
constants are now displayed as the constant's name. (messju)

View File

@@ -28,7 +28,7 @@ function smarty_modifier_escape($string, $esc_type = 'html')
return htmlentities($string, ENT_QUOTES);
case 'url':
return urlencode($string);
return rawurlencode($string);
case 'quotes':
// escape unescaped single quotes