mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 01:18:42 +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':
|
case 'keep':
|
||||||
break;
|
break;
|
||||||
case 'remove':
|
case 'remove':
|
||||||
$str = preg_replace('/{[^ \t\r\n}]+}/', '', $str);
|
$str = preg_replace('/{[a-z0-9_-]+}/i', '', $str);
|
||||||
break;
|
break;
|
||||||
case 'comment':
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user