[Merwok] decode correctly URLs in gajim-remote handle_uri. Fixes #4703

This commit is contained in:
Yann Leboulanger 2009-01-25 21:38:35 +00:00
parent ef55e021fc
commit a35b0f72ba
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,7 @@
import sys
import locale
import urllib
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL) # ^C exits the application
@ -507,6 +508,10 @@ class GajimRemote:
self.command = sys.argv[1] = 'open_chat'
return
(jid, action) = uri.split('?', 1)
try:
jid = urllib.unquote(jid)
except UnicodeDecodeError:
pass
sys.argv[2] = jid
if action == 'join':
self.command = sys.argv[1] = 'join_room'