aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-22 12:23:11 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-06-22 12:23:11 +0200
commit4d5e0c291ea8e62fc0511cb2de7a49e13cf0895e (patch)
tree37af2bab8ae14e76a4b152c772dbea8625aac155
parent982a20fef557142eac4e1cc41b9c3cbe5a7b091f (diff)
remove white spaces from hostname
-rw-r--r--src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java
index c6251c22..f6c2c7af 100644
--- a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java
@@ -153,8 +153,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();