Skip to content

At sign (@) inside chunk parameter value nested into tag output filter breaks tag parsing #16318

Closed
@juro

Description

@juro

Consider this content:

[[+xyz:empty=`
aaa
[[xxx? &x=`bbb@ccc`]]
ddd
`]]
eee

Supposed output should be:

aaa xxxSnippetOutput ddd eee

Instead it is:

aaa [[xxx? &x=`bbb eee

This works fine as expected:

[[+xyz:empty=`
aaa
[[xxx? &x=`bbbccc`]]
ddd
`]]
eee

At sign (@) inside parameter value breaks parsing, but only when nested inside output filter parameter value. Workaround here is to put inner tag inside separate chunk.
With some more complicated scenarios this even causes Server error with End of script output before headers: index.php in error log.
Clean MODx 3.0.2 install, the same with older 2.7.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue in the code or project, which should be addressed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions