From 97163e1fb82189a1963588d997bb07d37bc98d4a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 1 Dec 2011 10:01:33 +0300 Subject: [PATCH] do trim() on login and password --- src/org/fox/ttrss/MainActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java index ebdf62d5..e78de4a7 100644 --- a/src/org/fox/ttrss/MainActivity.java +++ b/src/org/fox/ttrss/MainActivity.java @@ -1140,7 +1140,7 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe logout(); - if (m_prefs.getString("ttrss_url", "").length() == 0) { + if (m_prefs.getString("ttrss_url", "").trim().length() == 0) { setLoadingStatus(R.string.login_need_configure, false); @@ -1151,8 +1151,8 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe HashMap map = new HashMap() { { put("op", "login"); - put("user", m_prefs.getString("login", null)); - put("password", m_prefs.getString("password", null)); + put("user", m_prefs.getString("login", "").trim()); + put("password", m_prefs.getString("password", "").trim()); } };