aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-22 12:23:11 +0200
committerChristian Schneppe <christian@pix-art.de>2016-06-22 20:41:38 +0200
commit2d81d4bd11a79b9c35810e5a3ffca702c66cc908 (patch)
tree50386bda6fc3a545ede64aa55091b7bbe1829f41
parent2ebf84bf8c5d9ba09a2b31f653a2689ddbc6d050 (diff)
remove white spaces from hostname
Diffstat (limited to '')
-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 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();