cvs: smarty / NEWS /libs/plugins modifier.escape.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1106932814@cvsserver> |
messju Fri Jan 28 12:20:14 2005 EDT
Modified files:
/smarty NEWS
/smarty/libs/plugins modifier.escape.php
Log:
escape:url now uses the (RFC 1738 compliant) rawurlencode()
http://cvs.php.net/diff.php/smarty/NEWS?r1=1.484&r2=1.485&ty=u
Index: smarty/NEWS
diff -u smarty/NEWS:1.484 smarty/NEWS:1.485
--- smarty/NEWS:1.484 Thu Jan 6 12:17:05 2005
+++ smarty/NEWS Fri Jan 28 12:20:13 2005
@@ -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)
http://cvs.php.net/diff.php/smarty/libs/plugins/modifier.escape.php?r1=1.17&r2=1.18&ty=u
Index: smarty/libs/plugins/modifier.escape.php
diff -u smarty/libs/plugins/modifier.escape.php:1.17 smarty/libs/plugins/modifier.escape.php:1.18
--- smarty/libs/plugins/modifier.escape.php:1.17 Wed Jun 9 10:54:31 2004
+++ smarty/libs/plugins/modifier.escape.php Fri Jan 28 12:20:14 2005
@@ -28,7 +28,7 @@
return htmlentities($string, ENT_QUOTES);
case 'url':
- return urlencode($string);
+ return rawurlencode($string);
case 'quotes':
// escape unescaped single quotes
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php