Last modified: 2010-05-15 15:29:40 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 T2152, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 152 - Title::secureAndSplit() assume escaped links are NS_MAIN
Title::secureAndSplit() assume escaped links are NS_MAIN
Status: CLOSED WORKSFORME
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.3.x
All All
: Normal major (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
:
Depends on:
Blocks: 35
  Show dependency treegraph
 
Reported: 2004-08-16 20:29 UTC by Antoine "hashar" Musso (WMF)
Modified: 2010-05-15 15:29 UTC (History)
2 users (show)

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


Attachments

Description Antoine "hashar" Musso (WMF) 2004-08-16 20:29:51 UTC
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:

{{:mytemplate}}

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

I am coding a patch for this.
Comment 1 Brion Vibber 2004-08-16 20:34:22 UTC
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.)
Comment 2 Antoine "hashar" Musso (WMF) 2004-08-16 20:40:33 UTC
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.

 

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


Navigation
Links