From 179beb15e0a2cf4e8e43ce287402274b76d6740b Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 31 Jan 2019 13:59:38 +0100 Subject: [PATCH] fix xmpp uri links that have a aditional chars after join for example xmpp:foo@bar.tld?join, --- src/main/java/eu/siacs/conversations/utils/XmppUri.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/utils/XmppUri.java b/src/main/java/eu/siacs/conversations/utils/XmppUri.java index 706b59365..de18aa596 100644 --- a/src/main/java/eu/siacs/conversations/utils/XmppUri.java +++ b/src/main/java/eu/siacs/conversations/utils/XmppUri.java @@ -166,7 +166,7 @@ public class XmppUri { private boolean hasAction(String query, String action) { for (String pair : query == null ? new String[0] : query.split(";")) { final String[] parts = pair.split("=", 2); - if (parts.length == 1 && parts[0].equals(action)) { + if (parts.length == 1 && parts[0].toLowerCase(Locale.US).startsWith(action)) { return true; } }