mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 12:14:12 +02:00
- added Smarty::$_UTF8_MODIFIER for proper PCRE charset handling (Forum Topic 20452)
This commit is contained in:
@@ -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]})";
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user