cvs: smarty / NEWS /libs/plugins modifier.escape.php

"Monte Ohrt" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmohrt1123875536@cvsserver>
mohrt		Fri Aug 12 15:38:56 2005 EDT

  Modified files:              
    /smarty	NEWS 
    /smarty/libs/plugins	modifier.escape.php 
  Log:
  add "urlpathinfo" escape type to escape modifier. (apache does not like %2F in the PATH_INFO)
  
  
http://cvs.php.net/diff.php/smarty/NEWS?r1=1.510&r2=1.511&ty=u
Index: smarty/NEWS
diff -u smarty/NEWS:1.510 smarty/NEWS:1.511
--- smarty/NEWS:1.510	Fri Aug  5 16:52:59 2005
+++ smarty/NEWS	Fri Aug 12 15:38:52 2005
@@ -1,3 +1,5 @@
+ - add escape type "urlpathinfo" to escape modifier
+ 
 Version 2.6.10 (Aug 5, 2005)
 ----------------------------
 
http://cvs.php.net/diff.php/smarty/libs/plugins/modifier.escape.php?r1=1.18&r2=1.19&ty=u
Index: smarty/libs/plugins/modifier.escape.php
diff -u smarty/libs/plugins/modifier.escape.php:1.18 smarty/libs/plugins/modifier.escape.php:1.19
--- smarty/libs/plugins/modifier.escape.php:1.18	Fri Jan 28 12:20:14 2005
+++ smarty/libs/plugins/modifier.escape.php	Fri Aug 12 15:38:56 2005
@@ -30,6 +30,9 @@
         case 'url':
             return rawurlencode($string);
 
+        case 'urlpathinfo':
+            return str_replace('%2F','/',rawurlencode($string));
+            
         case 'quotes':
             // escape unescaped single quotes
             return preg_replace("%(?<!\\\\)'%", "\\'", $string);

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.