Check that there is an argument to gajim-remove handle_uri function. Fixes #5660

This commit is contained in:
Yann Leboulanger 2010-03-18 13:31:12 +01:00
parent 033843093f
commit 17d142550b
1 changed files with 2 additions and 0 deletions

View File

@ -534,6 +534,8 @@ class GajimRemote:
self.arguments += ['']*(len(args)-i)
def handle_uri(self):
if len(sys.argv) < 3:
send_error(_('No uri given'))
if not sys.argv[2].startswith('xmpp:'):
send_error(_('Wrong uri'))
sys.argv[2] = sys.argv[2][5:]