From c847cf5547c65dfd00249409e9d28c75fea6bc89 Mon Sep 17 00:00:00 2001 From: mohrt Date: Fri, 12 Aug 2005 19:38:56 +0000 Subject: [PATCH] add "urlpathinfo" escape type to escape modifier. (apache does not like %2F in the PATH_INFO) --- NEWS | 2 ++ libs/plugins/modifier.escape.php | 3 +++ 2 files changed, 5 insertions(+) diff --git a/NEWS b/NEWS index 70405aea..780dc35b 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ + - add escape type "urlpathinfo" to escape modifier + Version 2.6.10 (Aug 5, 2005) ---------------------------- diff --git a/libs/plugins/modifier.escape.php b/libs/plugins/modifier.escape.php index a32a8766..98e16e79 100644 --- a/libs/plugins/modifier.escape.php +++ b/libs/plugins/modifier.escape.php @@ -30,6 +30,9 @@ function smarty_modifier_escape($string, $esc_type = 'html') case 'url': return rawurlencode($string); + case 'urlpathinfo': + return str_replace('%2F','/',rawurlencode($string)); + case 'quotes': // escape unescaped single quotes return preg_replace("%(?