From: David A. Velasco Date: Fri, 3 Aug 2012 10:56:50 +0000 (+0200) Subject: Added forgotten trim()s on the content of the URL field X-Git-Tag: oc-android-1.4.3~212 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/6ef3fa77efd32e1743b086cc17d94dd8d8335a98 Added forgotten trim()s on the content of the URL field --- diff --git a/src/com/owncloud/android/ui/activity/AuthenticatorActivity.java b/src/com/owncloud/android/ui/activity/AuthenticatorActivity.java index dbf9576e..6344dadb 100644 --- a/src/com/owncloud/android/ui/activity/AuthenticatorActivity.java +++ b/src/com/owncloud/android/ui/activity/AuthenticatorActivity.java @@ -234,7 +234,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity public void onOkClick(View view) { String prefix = ""; String url = ((TextView) findViewById(R.id.host_URL)).getText() - .toString(); + .toString().trim(); if (mIsSslConn) { prefix = "https://"; } else { @@ -282,7 +282,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity mStatusText = mStatusIcon = 0; mStatusCorrect = false; String t_url = ((TextView) findViewById(R.id.host_URL)).getText() - .toString().toLowerCase(); + .toString().trim().toLowerCase(); switch (type) { case OK_SSL: