fix xmpp uri links that have a aditional chars after join

for example xmpp:foo@bar.tld?join,
This commit is contained in:
Daniel Gultsch 2019-01-31 13:59:38 +01:00
parent e0965a2bf2
commit 179beb15e0
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ public class XmppUri {
private boolean hasAction(String query, String action) { private boolean hasAction(String query, String action) {
for (String pair : query == null ? new String[0] : query.split(";")) { for (String pair : query == null ? new String[0] : query.split(";")) {
final String[] parts = pair.split("=", 2); 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; return true;
} }
} }