aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-02-04 19:38:38 +0100
committerChristian Schneppe <christian@pix-art.de>2019-02-04 19:38:38 +0100
commit57f7aefb46c4ab574fcbe435635dc11a795e4e7c (patch)
treef62b7272eb3bf38667b6377cb11b65067a413182 /src/main/java/de/pixart
parent900ebbdd7c870c555f68f7a97edbf8078a442303 (diff)
fix xmpp uri links that have a aditional chars after join
for example xmpp:foo@bar.tld?join,
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r--src/main/java/de/pixart/messenger/utils/XmppUri.java2
1 files changed, 1 insertions, 1 deletions
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;
}
}