Page MenuHomePhabricator

URL parsing doesn't match RFC 2396
Closed, ResolvedPublic

Description

Author: timwi

Description:
BUG MIGRATED FROM SOURCEFORGE
http://sourceforge.net/tracker/index.php?func=detail&aid=800225&group_id=34373&atid=411192
Originally submitted by Brion Vibber (vibber)<a href="/help/icon_legend.php?context=user_wantsdonations&amp;user_id=446709&amp;return_to=%2F"><IMG src="http://images.sourceforge.net/images/icons/donate.png" alt="Accepting Donations" border="0" width="16" height="16"></a> 2003-09-04 07:07

Our checks for valid URL links aren't entirely
accurate, and some valid URLs are rejected. (For
instance, those containing the dollar sign $, which is
reserved but valid in a number of places, including the
query string.)

Rewriting the regexps with a closer eye to the rfc
might be a good thing.

Workaround: rejected characters can be replaced with
their %HH hex code equivalents.


Version: unspecified
Severity: normal
URL: http://www.faqs.org/rfcs/rfc2396.html

Details

Reference
bz343

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
ResolvedNone

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 6:52 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz343.
bzimport added a subscriber: Unknown Object (MLST).
  • Bug 430 has been marked as a duplicate of this bug. ***

wmahan_04 wrote:

Links with dollar signs work correctly in 1.4; not sure about other special
characters.

The underscore character '_' does also not work and needs to be replaced with %5F (at least in 1.3.7 version).

URL not working in 1.3.7: http://bundesrecht.juris.de/bundesrecht/estg/__3.html
URL replacement: http://bundesrecht.juris.de/bundesrecht/estg/%5F%5F3.html

  • Bug 901 has been marked as a duplicate of this bug. ***

rowan.collins wrote:

*** Bug 1951 has been marked as a duplicate of this bug. ***

_ : . and ' are fixed at least in trunk@14007

Marking as fixed.

corey.burger wrote:

Bug 1951 talks about the use of [ and ] in urls. Are those fixed as well?