Page MenuHomePhabricator

Templates do not get expanded more than 5 times per page
Closed, ResolvedPublic


Author: apb

If the same template is used many times on the same page, then only the first five
instances are expanded. This is especially bad for the [[en:Wikipedia:Vandalism in
progress]] page, where the {{Vip}} template is used many times.

I believe that the 5-expansions limit is intended to prevent infinite recursion.
Please replace it with a better method that prevents recursion without placing
arbitrary limits on the number of template expansions.

Version: unspecified
Severity: normal



Event Timeline

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

This is actually working as intended. MediaWiki got a hard limit set to 5
template inclusions (MAX_INCLUDE_REPEAT).

The purpose is to prevent recursive / massive inclusions. A patch should
probably be made to
better fix this security trouble.

A problem, for instnce, on en:ViP (where a bizarrely complex template is
suggested for use with every report).

*** This bug has been marked as a duplicate of 95 ***