Skip to content
Snippets Groups Projects
Commit 17d14255 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent 03384309
No related branches found
No related tags found
No related merge requests found
......@@ -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:]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment