Page MenuHomePhabricator

Title::secureAndSplit() assume escaped links are NS_MAIN
Closed, DeclinedPublic


secureAndSplit() assume that a given link with an initial colon is part of
the MAIN namespace. This might be false in some occasion, for example one might
want to create a link to a template:


This will render as a link to [[mytemplate]] instead of [[template:mytemplate]].

I am coding a patch for this.

Version: 1.3.x
Severity: major



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 6:43 PM
bzimport set Reference to bz152.

I don't understand what the bug is supposed to be. {{:mytemplate}} will indeed import [[Mytemplate]] rather than [[Template:Mytemplate]], so the
link is correct. (You can import a template from any namespace by specifying it explicitly; Template is just the default, there to separate the
common cases of templates in a sensible fashion.)

Forget me. For the last 3 hours I made the assumption that we could only
import articles from the template namespace ...

Additionaly I made an error in my testing page that I just figured out.

Closing things.