[Python-Dev] Possible bug in urllib.urljoin (original) (raw)
John J Lee jjl at pobox.com
Sun Sep 25 22:34:39 CEST 2005
- Previous message: [Python-Dev] Possible bug in urllib.urljoin
- Next message: [Python-Dev] Repository for python developers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 23 Sep 2005, Andrew Edmondson wrote:
We've found a problem using urllib.urljoin when upgrading from python 2.3 to 2.4. It no longer joins a particular corner case of URLs correctly (we think!).
The code appears to follow the algorithm (from http://www.ietf.org/rfc/rfc1808.txt) for resolving urls almost exacty... [...] Can you tell me if this was a deliberate decision to move from following the algorithm? If so then we'll work around it.
I don't know if it was done right, but this came in at revision 1.41 of urlparse.py -- the commit comment is actually in 1.42:
| Make urlparse RFC 2396 compliant. | Closes bug #450225 (thanks Michael Stone).
So I guess the answer to your question is "yes".
http://www.ietf.org/rfc/rfc2396.txt
John
- Previous message: [Python-Dev] Possible bug in urllib.urljoin
- Next message: [Python-Dev] Repository for python developers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]