This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Bug fix 548176: urlparse('http://foo?blah') errs
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: jlgijsbers Nosy List: jlgijsbers, mrovner, staschuk
Priority: normal Keywords: patch

Created on 2003-03-30 20:16 by staschuk, last changed 2022-04-10 16:07 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
urlparse-netloc-end-at-qmark.patch staschuk, 2003-03-30 20:17
Messages (3)
msg43240 - (view) Author: Steven Taschuk (staschuk) Date: 2003-03-30 20:16
For detailed description of the problem, see
    http://www.python.org/sf/548176
In summary, URLs such as
    http://www.example.com?query=spam
are misparsed by urlparse.urlparse, which decides that 
everything after the '//' is the host name.  This is contrary to 
RFC 2396 and probably contrary to the intent of RFC 1738.

The patch corrects the problem, adds a test to expose it, 
and rearranges some of the tests to better exercise the 
code in question.
msg43241 - (view) Author: Mike Rovner (mrovner) Date: 2004-01-27 01:15
Logged In: YES 
user_id=162094

-1. See my comment at http://www.python.org/sf/548176
msg43242 - (view) Author: Johannes Gijsbers (jlgijsbers) * (Python triager) Date: 2005-01-09 15:32
Logged In: YES 
user_id=469548

See bug #548176 for why this patch is okay anyway. Checked
in on maint24 and HEAD.
History
Date User Action Args
2022-04-10 16:07:57adminsetgithub: 38242
2003-03-30 20:16:56staschukcreate