Last modified: 2008-01-16 06:05:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10332, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8332 - Templates within comment borders are being expanded when using subst:
Templates within comment borders are being expanded when using subst:
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 12652
Blocks:
  Show dependency treegraph
 
Reported: 2006-12-20 02:10 UTC by Danny B.
Modified: 2008-01-16 06:05 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Danny B. 2006-12-20 02:10:26 UTC
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 --> -->
Comment 1 Danny B. 2008-01-16 05:20:59 UTC
Since some misunderstandings occured, I rather add the fact this is supposed to be tested in namespaces with subpages allowed.
Comment 2 Danny B. 2008-01-16 05:37:14 UTC
Looks it has been ironed out during the time with some revision since it can't be reproduced now.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links