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

View file

@ -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;
}
}