Last modified: 2006-03-16 18:13:39 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 T7267, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5267 - {{fullurl}} fails to convert ( to %28, and ) to %29
{{fullurl}} fails to convert ( to %28, and ) to %29
Status: RESOLVED DUPLICATE of bug 4781
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.6.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/Ben-Hur_...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-03-16 10:08 UTC by David Benbennick
Modified: 2006-03-16 18:13 UTC (History)
0 users

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


Attachments

Description David Benbennick 2006-03-16 10:08:22 UTC
If an article has a space in its title, {{fullurl:{{FULLPAGENAME}}}} is smart
enough to convert the space to an _.  But it fails to correctly escape (, ), +,
%, and possibly other characters.

This causes the following two problems, and possibly others:

1) At a page with % in its title, {{fullurl:{{FULLPAGENAME}}}} produces an
invalid URL.  For example, if the page title is merely %, the URL is
http://en.wikipedia.org/wiki/%, instead of .../wiki/%25

2) See http://en.wikipedia.org/wiki/Ben-Hur_%281959_film%29  Click on one of the
footnote links (there's one at the beginning of the second paragraph of the
"Synopsis" section).  The link is to
http://en.wikipedia.org/wiki/Ben-Hur_(1959_film)#endnote_galleyslave  Since that
URL is different from the current page, it forces the web browser to reload the
same article, instead of simply jumping down to the footnote.


MediaWiki already has the ability to convert arbitrary strings to links.  For
example, it knows how to produce URLs for [[Ben-Hur (1959 film)]] and [[%]]. 
The {{fullurl}} code should simply use ''exactly the same routine'' that
MediaWiki uses everywhere else.
Comment 1 Brion Vibber 2006-03-16 18:13:39 UTC

*** 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