X-Git-Url: https://git.sur5r.net/?p=contagged;a=blobdiff_plain;f=inc%2Fsmarty%2Fplugins%2Fmodifier.escape.php;fp=inc%2Fsmarty%2Fplugins%2Fmodifier.escape.php;h=a2f52b232c1316ee9b7d0a2ea70cfc41c1b012c6;hp=7d3230ba73e429cb688e5e5b4906c9413df27486;hb=f204d4d8fe772001803c3509f8be0528840be4eb;hpb=fe4b8192a9eb0b485673ee3854d6fc14cbe1dda1 diff --git a/inc/smarty/plugins/modifier.escape.php b/inc/smarty/plugins/modifier.escape.php index 7d3230b..a2f52b2 100644 --- a/inc/smarty/plugins/modifier.escape.php +++ b/inc/smarty/plugins/modifier.escape.php @@ -33,7 +33,7 @@ function smarty_modifier_escape($string, $esc_type = 'html', $char_set = 'ISO-88 case 'urlpathinfo': return str_replace('%2F','/',rawurlencode($string)); - + case 'quotes': // escape unescaped single quotes return preg_replace("%(?'\\\\',"'"=>"\\'",'"'=>'\\"',"\r"=>'\\r',"\n"=>'\\n',''<\/')); - + case 'mail': // safe way to display e-mail address on a web page return str_replace(array('@', '.'),array(' [AT] ', ' [DOT] '), $string); - + case 'nonstd': // escape non-standard chars, such as ms document quotes $_res = '';