fix somethingawful.py to work with usernames with spaces
This commit is contained in:
parent
815efcb902
commit
1295bc6df5
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue