From 34ceb658a1133e56d6fe99794f797c89d36fbbbc Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sat, 6 Jan 2018 12:45:54 -0800 Subject: Fix server settings rejecting urls like the_max.subsonic.org which are valid --- .../main/java/github/daneren2005/dsub/fragments/SettingsFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/github/daneren2005') diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java index fa2ca340..94c9b7fc 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java @@ -795,7 +795,7 @@ public class SettingsFragment extends PreferenceCompatFragment implements Shared try { String url = (String) value; new URL(url); - if (url.contains(" ") || url.contains("@") || url.contains("_")) { + if (url.contains(" ") || url.contains("@")) { throw new Exception(); } } catch (Exception x) { @@ -816,7 +816,7 @@ public class SettingsFragment extends PreferenceCompatFragment implements Shared } new URL(url); - if (url.contains(" ") || url.contains("@") || url.contains("_")) { + if (url.contains(" ") || url.contains("@")) { throw new Exception(); } } catch (Exception x) { -- cgit v1.2.3