aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2018-01-06 12:45:54 -0800
committerScott Jackson <daneren2005@gmail.com>2018-01-06 12:45:54 -0800
commit34ceb658a1133e56d6fe99794f797c89d36fbbbc (patch)
treef9259012302e511a687e0c4384987e3df28f5d6d /app/src/main
parent74bf7833ea47e839bb467d38c96f404ae40d83f7 (diff)
downloaddsub-34ceb658a1133e56d6fe99794f797c89d36fbbbc.tar.gz
dsub-34ceb658a1133e56d6fe99794f797c89d36fbbbc.tar.bz2
dsub-34ceb658a1133e56d6fe99794f797c89d36fbbbc.zip
Fix server settings rejecting urls like the_max.subsonic.org which are valid
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java4
1 files changed, 2 insertions, 2 deletions
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) {