Page MenuHomePhabricator

Templates within comment borders are being expanded when using subst:
Closed, ResolvedPublic

Description

Template code written within comment borders (<!-- -->) is being expanded, when
entire page is substed to another one, and results in endless loop.

Example:

page "Lorem ispum" contains:
<!-- This is Lorem ispum page -->
<!-- To clear this page, use {{subst:/clear}} -->
blah blah
foo
bar

page "Lorem ispum/clear" contains:
<!-- This is Lorem ispum page -->
<!-- To clear this page, use {{subst:/clear}} -->

When saving {{subst:/clear}} in empty "Lorem ipsum" page, it expands the
template in comment and shows the <!-- WARNING: template loop detected -->
warning as well. So the result is like:

<!-- This is Lorem ispum page -->
<!-- To clear this page, use <!-- This is Lorem ispum page -->
<!-- To clear this page, use /clear<!-- WARNING: template loop detected --> -->


Version: unspecified
Severity: minor

Details

Reference
bz8332

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:29 PM
bzimport set Reference to bz8332.
bzimport added a subscriber: Unknown Object (MLST).

Since some misunderstandings occured, I rather add the fact this is supposed to be tested in namespaces with subpages allowed.

Looks it has been ironed out during the time with some revision since it can't be reproduced now.