Bug #16371 Clarification Requested

Parsing custom tags with child tags as a substring of parent tag

Version: 2.1.3 Reporter: Blue State Digital

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

In mod.channel.php there is a section where the parsing is prefaced by

// This hurts soo much. Using custom fields as pair and single vars in the same
// channel tags could lead to something like this: {field}...{field}inner{/field}
// There’s no efficient regex to match this case, so we’ll find the last nested
// opening tag and re-cut the chunk.

We found an issue where it was not recognizing the following patter, which is slightly different than noted:

{test}{test_a}{/test}

Where the child tag is a substring of the parent tag. The output is

{test_a}{/test}

We worked around the problem by making sure that the inner tag names (this is using the Matrix plugin) doe not include the name of the Matrix field in them.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases