Last modified: 2010-05-15 15:29:40 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 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