mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
fixed unknowns="remove" to remove more strict (only variable names with letterns, numbers, underscore and dash), as it messes up json otherwise
This commit is contained in:
parent
423a1d9303
commit
8445199caf
@ -349,10 +349,10 @@
|
||||
case 'keep':
|
||||
break;
|
||||
case 'remove':
|
||||
$str = preg_replace('/{[^ \t\r\n}]+}/', '', $str);
|
||||
$str = preg_replace('/{[a-z0-9_-]+}/i', '', $str);
|
||||
break;
|
||||
case 'comment':
|
||||
$str = preg_replace('/{([^ \t\r\n}]+)}/', "<!-- Template $handle: Variable \\1 undefined -->", $str);
|
||||
$str = preg_replace('/{([a-z0-9_-]+)}/i', "<!-- Template $handle: Variable \\1 undefined -->", $str);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user