fix somethingawful.py to work with usernames with spaces

This commit is contained in:
Ryan Hitchman 2010-12-04 00:38:21 -06:00
parent 815efcb902
commit 1295bc6df5
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ def login(user, password):
cookie.name == 'bbpassword' for cookie in http.jar):
return
assert("malformed cookie jar")
user = http.quote(user)
password = http.quote(password)
http.get("http://forums.somethingawful.com/account.php", cookies=True,
post_data="action=login&username=%s&password=%s" % (user, password))