From 57f7aefb46c4ab574fcbe435635dc11a795e4e7c Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Mon, 4 Feb 2019 19:38:38 +0100 Subject: fix xmpp uri links that have a aditional chars after join for example xmpp:foo@bar.tld?join, --- src/main/java/de/pixart/messenger/utils/XmppUri.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/de/pixart') diff --git a/src/main/java/de/pixart/messenger/utils/XmppUri.java b/src/main/java/de/pixart/messenger/utils/XmppUri.java index 9c0b3e666..1ee90aa84 100644 --- a/src/main/java/de/pixart/messenger/utils/XmppUri.java +++ b/src/main/java/de/pixart/messenger/utils/XmppUri.java @@ -171,7 +171,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; } } -- cgit v1.2.3