From 5655449d0849572ec9fdc1332e58b017039406d7 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Tue, 25 Apr 2006 19:56:27 +0000
Subject: [PATCH] escape password when we create gmail URL

---
 src/gajim.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/gajim.py b/src/gajim.py
index 76954c7251..1bf378bb3a 100755
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -31,6 +31,7 @@ exec python -OOt "$0" ${1+"$@"}
 
 import sys
 import os
+import urllib
 
 import message_control
 
@@ -1702,7 +1703,9 @@ class Interface:
 			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&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:
 				url = ('http://mail.google.com/')
 			helpers.launch_browser_mailer('url', url)
-- 
GitLab