From 1bf2f103533dd9e73fac49be0c486cae551eded7 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sat, 4 Mar 2017 17:01:33 +0100 Subject: properly trim() incoming imto: uris --- src/main/java/de/pixart/messenger/utils/XmppUri.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/de/pixart/messenger') 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; } -- cgit v1.2.3