From 095ceba2bc589d73f780be14bfcfddb9b397155e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 30 Jul 2013 00:01:58 +0400 Subject: [PATCH] trim base url when downloading feed icons --- src/org/fox/ttrss/FeedsFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/fox/ttrss/FeedsFragment.java b/src/org/fox/ttrss/FeedsFragment.java index cd179ba5..47ebc415 100644 --- a/src/org/fox/ttrss/FeedsFragment.java +++ b/src/org/fox/ttrss/FeedsFragment.java @@ -345,7 +345,7 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh String baseUrl = ""; if (!iconsStr.contains("://")) { - baseUrl = m_prefs.getString("ttrss_url", "") + "/" + iconsStr; + baseUrl = m_prefs.getString("ttrss_url", "").trim() + "/" + iconsStr; } else { baseUrl = iconsStr; } @@ -589,7 +589,7 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh private String m_baseUrl; public GetIconsTask(String baseUrl) { - m_baseUrl = baseUrl; + m_baseUrl = baseUrl.trim(); } @Override