properly trim() incoming imto: uris

This commit is contained in:
Daniel Gultsch 2017-02-27 22:48:25 +01:00
parent c7ec82679f
commit 1f4c5ff97c
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public class XmppUri {
} else if ("imto".equalsIgnoreCase(scheme)) { } else if ("imto".equalsIgnoreCase(scheme)) {
// sample: imto://xmpp/foo@bar.com // sample: imto://xmpp/foo@bar.com
try { try {
jid = URLDecoder.decode(uri.getEncodedPath(), "UTF-8").split("/")[1]; jid = URLDecoder.decode(uri.getEncodedPath(), "UTF-8").split("/")[1].trim();
} catch (final UnsupportedEncodingException ignored) { } catch (final UnsupportedEncodingException ignored) {
jid = null; jid = null;
} }