From dc29cf27a3e5a13998428fab980843ea3b12c8fe Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 15 May 2020 19:22:15 +0200 Subject: [PATCH] validate conference jid on input --- .../eu/siacs/conversations/ui/StartConversationActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java index 35484232d..8e46786e2 100644 --- a/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java @@ -1017,7 +1017,7 @@ public class StartConversationActivity extends XmppActivity implements XmppConne final String input = jid.getText().toString(); Jid conferenceJid; try { - conferenceJid = Jid.of(input); + conferenceJid = Jid.ofEscaped(input); } catch (final IllegalArgumentException e) { final XmppUri xmppUri = new XmppUri(input); if (xmppUri.isValidJid() && xmppUri.isAction(XmppUri.ACTION_JOIN)) {