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

From: Date: Fri, 12 Aug 2005 19:38:56 +0000
Subject: cvs: smarty / NEWS /libs/plugins modifier.escape.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-1786@lists.php.net to get a copy of this message
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);

« previous php.smarty.cvs (#1786) next »