Fix credentials-with-space bug (bug 1065)
commitbcde6ca3937319b2b46107d8dd71c5441dfb4334
authorThomas Perl <thp@thpinfo.com>
Fri, 2 Jul 2010 19:37:59 +0000 (2 21:37 +0200)
committerThomas Perl <thp@thpinfo.com>
Fri, 2 Jul 2010 19:37:59 +0000 (2 21:37 +0200)
tree5b1b1348c3d2e3769b11b70f53ab03c5a45af9b9
parent44c3cf3f849b5d9c1ba83343fe796fdb3763c629
Fix credentials-with-space bug (bug 1065)

Spaces in username or password for HTTP auth were
quoted in a wrong way (quote_plus), which made the
rest of the code not decode the URL correctly.

This patch makes quoting of spaces work correctly
and produce URLs that have correct semantics. Unit
tests were also added to verify this special case.
src/gpodder/util.py