escape password when we create gmail URL

This commit is contained in:
Yann Leboulanger 2006-04-25 19:56:27 +00:00
parent 84a026aa17
commit 5655449d08
1 changed files with 4 additions and 1 deletions

View File

@ -31,6 +31,7 @@ exec python -OOt "$0" ${1+"$@"}
import sys import sys
import os import os
import urllib
import message_control import message_control
@ -1702,7 +1703,9 @@ class Interface:
self.roster.open_event(account, jid, ev) self.roster.open_event(account, jid, ev)
elif typ == 'gmail': elif typ == 'gmail':
if gajim.config.get_per('accounts', account, 'savepass'): if gajim.config.get_per('accounts', account, 'savepass'):
url = ('http://www.google.com/accounts/ServiceLoginAuth?service=mail&Email=%s&Passwd=%s&continue=https://mail.google.com/mail') % (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&Passwd=%s&continue=https://mail.google.com/mail') %\
(urllib.quote(gajim.config.get_per('accounts', account, 'name')),
urllib.quote(gajim.config.get_per('accounts', account, 'password')))
else: else:
url = ('http://mail.google.com/') url = ('http://mail.google.com/')
helpers.launch_browser_mailer('url', url) helpers.launch_browser_mailer('url', url)