From 2d81d4bd11a79b9c35810e5a3ffca702c66cc908 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Wed, 22 Jun 2016 12:23:11 +0200 Subject: remove white spaces from hostname --- src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java index dee356c81..c33d5ca58 100644 --- a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java @@ -151,8 +151,8 @@ public class EditAccountActivity extends XmppActivity implements OnAccountUpdate String hostname = null; int numericPort = 5222; if (mShowOptions) { - hostname = mHostname.getText().toString(); - final String port = mPort.getText().toString(); + hostname = mHostname.getText().toString().replaceAll("\\s",""); + final String port = mPort.getText().toString().replaceAll("\\s",""); if (hostname.contains(" ")) { mHostname.setError(getString(R.string.not_valid_hostname)); mHostname.requestFocus(); -- cgit v1.2.3