Last modified: 2004-08-16 23:40:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 124 - Only first five template inclusions work
Only first five template inclusions work
Status: RESOLVED DUPLICATE of bug 95
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2004-08-16 06:04 UTC by Timwi
Modified: 2004-08-16 23:40 UTC (History)
1 user (show)

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


Description Timwi 2004-08-16 06:04:14 UTC
Originally submitted by John Ky (newhoggy)  2004-06-07 01:48

Suppose I add the following text to a page:











The page will only include the first five instances of
{{msg:Mediaweapon}}.  The rest of them behave as if
they were: [[Template:Mediaweapon]]

------------------------- Additional comments ------------------------
Date: 2004-06-07 06:08
Sender: SF user hashar

This is hardcoded in parser.php:
define( "MAX_INCLUDE_REPEAT", 5 );

It's to prevent a possible attack :o)
Date: 2004-06-07 07:25
Sender: SF user phil_e

hahar, this feature is boring e.g. on fr you know we use a
lot of:

{{msg:le}} [externllink]
{{msg:le}} [externllink]


Date: 2004-06-07 10:15
Sender: nobody
Logged In: NO 

Thanks.  I'll choose a slightly bigger number for now. 
Would it be possible to relax this constraint for small

Date: 2004-06-09 04:28
Sender: SF user hashar

This is hardcoded site wide. I don't think a template should
be used that much.

The only reason so far to change this setting is the example
of The {{msg:le}} template is used before
each external link for the purpose of showing a little earth
icon. That should be replaced by a css tweak for .
Date: 2004-06-14 05:17
Sender: SF user thrasher6669

just as another thought, i'm using templates on my wiki: and i can easyly get into areas where i can
use a template 5+ even 10+ times,  just ran into this
problem today...  

I'm using it to help facilitate uniform looking pages, my
site contains much code snippets and i have provided in the
form of a template a uniform table to show off this code
e.g.(  {{code box|code title| Your code here}}  )

and with the possible code snippets getting quite large on
some page i could easyly use 10+.  Now i could see something
similar happening on wikipedia or other wiki's.

i was just wondering what kind of attack this is trying to
prevent...  I havent had a change to look at the code but i
would assume you are using regex to do replacements.

sorry if i dident make much sense there...
oh heres and example of page that _could_ use my templates
(I would be replacing all of the green boxes with the
example above
Date: 2004-08-16 08:01
Sender: SF user timwi

This bug has been migrated to MediaZilla:
Please leave additional comments or attachments there.
Comment 1 Rowan Collins [IMSoP] 2004-08-16 23:40:39 UTC
Duplicate migration

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

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