From 1295bc6df552b3ae4ccbbb4d7d9ff4252e095c55 Mon Sep 17 00:00:00 2001 From: Ryan Hitchman Date: Sat, 4 Dec 2010 00:38:21 -0600 Subject: [PATCH] fix somethingawful.py to work with usernames with spaces --- plugins/somethingawful.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/somethingawful.py b/plugins/somethingawful.py index 191b059..84bda1f 100644 --- a/plugins/somethingawful.py +++ b/plugins/somethingawful.py @@ -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))