properly trim() incoming imto: uris
This commit is contained in:
		
							parent
							
								
									c7ec82679f
								
							
						
					
					
						commit
						1f4c5ff97c
					
				| @ -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; | ||||||
| 			} | 			} | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Daniel Gultsch
						Daniel Gultsch