aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2020-09-21 21:02:16 -0700
committerScott Jackson <daneren2005@gmail.com>2020-09-21 21:02:16 -0700
commit7aff3fa37b186b40d2ac73508b01628b212be8eb (patch)
tree02e022bd97e461bc90b1a02bdf63683e34b51805 /app/src
parent6bb874598c5e4bfa905ef0c7023af641ced914ce (diff)
downloaddsub-7aff3fa37b186b40d2ac73508b01628b212be8eb.tar.gz
dsub-7aff3fa37b186b40d2ac73508b01628b212be8eb.tar.bz2
dsub-7aff3fa37b186b40d2ac73508b01628b212be8eb.zip
Remove @ validation from network settings
Was a PR to completely remove space and @ validation (https://github.com/daneren2005/Subsonic/pull/985), but I can see people easily pressing space without meaning to and not being able to see what is wrong. If someone makes a good reason for it to be needed I will remove it, but for now just removing @ so people can do basic auth.
Diffstat (limited to 'app/src')
-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 674ce98a..326cebb4 100644
--- a/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java
+++ b/app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java
@@ -803,7 +803,7 @@ public class SettingsFragment extends PreferenceCompatFragment implements Shared
try {
String url = (String) value;
new URL(url);
- if (url.contains(" ") || url.contains("@")) {
+ if (url.contains(" ")) {
throw new Exception();
}
} catch (Exception x) {
@@ -824,7 +824,7 @@ public class SettingsFragment extends PreferenceCompatFragment implements Shared
}
new URL(url);
- if (url.contains(" ") || url.contains("@")) {
+ if (url.contains(" ")) {
throw new Exception();
}
} catch (Exception x) {