Browse Source

Added forgotten trim()s on the content of the URL field

David A. Velasco 12 years ago
parent
commit
6ef3fa77ef
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/com/owncloud/android/ui/activity/AuthenticatorActivity.java

+ 2 - 2
src/com/owncloud/android/ui/activity/AuthenticatorActivity.java

@@ -234,7 +234,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
     public void onOkClick(View view) {
     public void onOkClick(View view) {
         String prefix = "";
         String prefix = "";
         String url = ((TextView) findViewById(R.id.host_URL)).getText()
         String url = ((TextView) findViewById(R.id.host_URL)).getText()
-                .toString();
+                .toString().trim();
         if (mIsSslConn) {
         if (mIsSslConn) {
             prefix = "https://";
             prefix = "https://";
         } else {
         } else {
@@ -282,7 +282,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
         mStatusText = mStatusIcon = 0;
         mStatusText = mStatusIcon = 0;
         mStatusCorrect = false;
         mStatusCorrect = false;
         String t_url = ((TextView) findViewById(R.id.host_URL)).getText()
         String t_url = ((TextView) findViewById(R.id.host_URL)).getText()
-                .toString().toLowerCase();
+                .toString().trim().toLowerCase();
 
 
         switch (type) {
         switch (type) {
         case OK_SSL:
         case OK_SSL: