Author: asterix Date: 2006-04-25 21:56:27 +0200 (Tue, 25 Apr 2006) New Revision: 6226
Modified: trunk/src/gajim.py Log: escape password when we create gmail URL
Modified: trunk/src/gajim.py =================================================================== --- trunk/src/gajim.py 2006-04-25 19:38:08 UTC (rev 6225) +++ trunk/src/gajim.py 2006-04-25 19:56:27 UTC (rev 6226) @@ -31,6 +31,7 @@
import sys import os +import urllib
import message_control
@@ -1702,7 +1703,9 @@ self.roster.open_event(account, jid, ev) elif typ == 'gmail': if gajim.config.get_per('accounts', account, 'savepass'): - url = ('http://www.google.com/accounts/ServiceLoginAuth?service=mail&Email=%s&am...') % (gajim.config.get_per('accounts', account, 'name'),gajim.config.get_per('accounts', account, 'password')) + url = ('http://www.google.com/accounts/ServiceLoginAuth?service=mail&Email=%s&am...') %\ + (urllib.quote(gajim.config.get_per('accounts', account, 'name')), + urllib.quote(gajim.config.get_per('accounts', account, 'password'))) else: url = ('http://mail.google.com/') helpers.launch_browser_mailer('url', url)