diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-03-04 17:01:33 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-03-04 17:01:33 +0100 |
commit | 1bf2f103533dd9e73fac49be0c486cae551eded7 (patch) | |
tree | 237608417fe63b4bdcf0587a5c321c6aac4321e0 /src/main/java/de/pixart/messenger | |
parent | d6b2f54a4e77dbf1fb4f3ab7d1a3c84932a9cf9e (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.java | 2 |
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; } |