Last modified: 2006-02-22 19:44:44 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 T7064, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5064 - {{localurl}} used within a link fails to correctly escape the ampersand character
{{localurl}} used within a link fails to correctly escape the ampersand chara...
Status: RESOLVED DUPLICATE of bug 4781
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.6.x
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/Wikipedi...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-02-22 15:27 UTC by Cesar Eduardo Barros
Modified: 2006-02-22 19:44 UTC (History)
0 users

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


Attachments

Description Cesar Eduardo Barros 2006-02-22 15:27:51 UTC
When using {{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} as a
link, and the page name contains an ampersand, the generated link does not
escape the ampersand in the page title.

Testcases:

{{localurl:&|action=edit}} gives the expected output of
"/w/index.php?title=%26&action=edit"

{{SERVER}}{{localurl:&|action=edit}} is automatically converted into a
hyperlink (because of the leading http:// generated by {{SERVER}}) and gives the
incorrect output of "http://en.wikipedia.org/w/index.php?title=&&action=edit"
Comment 1 Brion Vibber 2006-02-22 19:44:44 UTC
This has nothing whatsoever to do with {{localurl}}.

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

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


Navigation
Links