diff options
Diffstat (limited to 'src/main')
-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; } |