[issue13642] urllib incorrectly quotes username and password in https basic auth

Michele Orrù report at bugs.python.org
Fri Dec 30 15:21:28 CET 2011


Michele Orrù <maker.py at gmail.com> added the comment:

> Joonas, this issue seems easy to solve. Do you want to try to post a 
> patch?. Extra credits for patching testsuite too :).
As far as I see, it would be sufficient to add unquote(passed) to _open_generic_http. Regarding unittests instead, there is already a method called test_userpass_inurl which could be extended with some tests on a password containing spaces ( Lib/test/test_urllib.py:263). But what I haven't yet understood is: does it really exists a user:pass in python.org?

----------
nosy: +maker

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


More information about the Python-bugs-list mailing list