aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-03-04 17:01:33 +0100
committerChristian Schneppe <christian@pix-art.de>2017-03-04 17:01:33 +0100
commit1bf2f103533dd9e73fac49be0c486cae551eded7 (patch)
tree237608417fe63b4bdcf0587a5c321c6aac4321e0 /src/main/java/de/pixart/messenger
parentd6b2f54a4e77dbf1fb4f3ab7d1a3c84932a9cf9e (diff)
properly trim() incoming imto: uris
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-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 1de4f59f7..120f0e88a 100644
--- a/src/main/java/de/pixart/messenger/utils/XmppUri.java
+++ b/src/main/java/de/pixart/messenger/utils/XmppUri.java
@@ -83,7 +83,7 @@ public class XmppUri {
} else if ("imto".equalsIgnoreCase(scheme)) {
// sample: imto://xmpp/foo@bar.com
try {
- jid = URLDecoder.decode(uri.getEncodedPath(), "UTF-8").split("/")[1];
+ jid = URLDecoder.decode(uri.getEncodedPath(), "UTF-8").split("/")[1].trim();
} catch (final UnsupportedEncodingException ignored) {
jid = null;
}