WCF icon indicating copy to clipboard operation
WCF copied to clipboard

Isolate `$foreachVars` for `{include …}` calls

Open dtdesign opened this issue 3 years ago • 0 comments

Nesting the same template inside a foreach loop that is also accessed inside the nested call will overwrite the values from the outer template due to identical identifiers being used.

This was partially addressed for the sandbox mode in #4445, but this does not take care of non-sandbox calls that are still affected by the underlying issue.

See https://github.com/WoltLab/WCF/pull/4445#issuecomment-895052103 for an idea for the isolation of $foreachVars.

dtdesign avatar Aug 09 '21 10:08 dtdesign