Last modified: 2006-03-16 18:13:39 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 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