[issue918368] urllib doesn't correct server returned urls

John J Lee report at bugs.python.org
Thu Feb 12 21:48:11 CET 2009


John J Lee <jjlee at users.sourceforge.net> added the comment:

Mike's list is missing one more character, "%" itself.  So, the
replacement should be:

quote(newurl, safe="%/:=&?~#+!$,;'@()*[]")

The replacement should be done in the .open() method, not in the code
that handles redirects.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue918368>
_______________________________________


More information about the Python-bugs-list mailing list