Page MenuHomePhabricator

Entering {{...}} as the title causes a page rendering error
Closed, ResolvedPublic

Description

Author: frazzydee

Description:
Entering {{...}} as the title of a Wikipedia page causes the software to put in
the actual template in inappropriate rather than displaying {{ and }} as the
title. The following URLs illustrate the error:

http://www.wikipedia.org/wiki/{{stub}}
http://en.wikipedia.org/wiki/{{stub}}
http://en.wikipedia.org/w/wiki.phtml?title={{stub}}
http://fr.wikipedia.org/wiki/{{stub}}

It seems to happen in all Wikipedias

Even if the template doesn't exist, the problem still occurs:

http://en.wikipedia.org/w/wiki.phtml?title={{aksjdfkasjdf}}


Version: unspecified
Severity: normal
URL: http://www.wikipedia.org/wiki/{{stub}}

Details

Reference
bz267

Event Timeline

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

The pagename should be escaped in the template.

Please edit it to use {{ÞAGENAMEE}} magicword instead of {{PAGENAME}}.
That should fix it.

checking more. Doesn't seem to work correctly.

frazzydee wrote:

Please note that most of the URLs don't work (sorry). I'll repost working links
in the same order:

www.wikipedia.org/wiki/%7b%7bstub%7D%7D
http://en.wikipedia.org/wiki/%7b%7bstub%7d%7d
http://en.wikipedia.org/w/wiki.phtml?title=%7b%7bstub%7d%7d
http://fr.wikipedia.org/wiki/%7B%7B%C3%89bauche%7D%7D

Please note that this one seems to work just fine now:
http://en.wikipedia.org/w/wiki.phtml?title=%7b%7baksjdfkasjdf%7d%7d

{ and } should not have been added to the legal title characters as they have special function. They will be removed shortly, but there are a few broken
pages that need to be resolved:

http://es.wiktionary.org/wiki/(*)/{Nav(*)}
http://pl.wiktionary.org/wiki/Es_{geben}
http://pl.wiktionary.org/wiki/Nie_{by?}
http://pl.wiktionary.org/wiki/There_{be}
http://pl.wiktionary.org/wiki/Dyskusja:There_{be}

The first is a test page, the others on pl have some content.

timwi wrote:

It seems that those pages no longer exist (except for the first one).

Cleaned up the remaining broken titles and made the change. In 1.4 and 1.3 CVS and live on WP.

These titles will now trigger a "bad title" error instead of bizarre corrupting things.