From 7aff3fa37b186b40d2ac73508b01628b212be8eb Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 21 Sep 2020 21:02:16 -0700 Subject: 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. --- .../main/java/github/daneren2005/dsub/fragments/SettingsFragment.java | 4 ++-- 1 file 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) { -- cgit v1.2.3