- added Smarty::$_UTF8_MODIFIER for proper PCRE charset handling (Forum Topic 20452)

This commit is contained in:
rodneyrehm
2011-12-18 18:48:07 +00:00
14 changed files with 42 additions and 22 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ function smarty_modifiercompiler_strip($params, $compiler)
if (!isset($params[1])) {
$params[1] = "' '";
}
return "preg_replace('!\s+!u', {$params[1]},{$params[0]})";
return "preg_replace('!\s+!" . Smarty::$_UTF8_MODIFIER . "', {$params[1]},{$params[0]})";
}
?>