diff options
author | Scott Jackson <daneren2005@gmail.com> | 2020-09-21 21:02:16 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2020-09-21 21:02:16 -0700 |
commit | 7aff3fa37b186b40d2ac73508b01628b212be8eb (patch) | |
tree | 02e022bd97e461bc90b1a02bdf63683e34b51805 /app/src/main | |
parent | 6bb874598c5e4bfa905ef0c7023af641ced914ce (diff) | |
download | dsub-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/main')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/fragments/SettingsFragment.java | 4 |
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) { |