mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
escape:url now uses the (RFC 1738 compliant) rawurlencode()
This commit is contained in:
1
NEWS
1
NEWS
@@ -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)
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user