mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Make the test for filters more strict to prevent unintended parsing
This commit is contained in:
parent
5638207fb0
commit
d03c64d069
1 changed files with 1 additions and 1 deletions
|
|
@ -565,7 +565,7 @@ class TemplateHandler
|
|||
}
|
||||
|
||||
// Separate filters from variable.
|
||||
if (preg_match('@^(.+?)(?<![|\s])\\|([a-z0-9_].+)$@', $m[1], $mm))
|
||||
if (preg_match('@^(.+?)(?<![|\s])\\|([a-z].+)$@', $m[1], $mm))
|
||||
{
|
||||
$m[1] = $mm[1];
|
||||
$filters = array_map('trim', explode_with_escape('|', $mm[2]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue