diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-09-25 18:07:17 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-09-25 18:07:17 -0700 |
commit | 66a15e90ba22ee9a5214a21ad04a95d39d421a1c (patch) | |
tree | ddf0d006de18bbee5ead274ba6bcd38560e7dda1 /subsonic-android/src | |
parent | 1b6fb979a5d39895024d872e292487081b498370 (diff) | |
download | dsub-66a15e90ba22ee9a5214a21ad04a95d39d421a1c.tar.gz dsub-66a15e90ba22ee9a5214a21ad04a95d39d421a1c.tar.bz2 dsub-66a15e90ba22ee9a5214a21ad04a95d39d421a1c.zip |
Show error if server url contains underscore
Diffstat (limited to 'subsonic-android/src')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/activity/SettingsActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SettingsActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SettingsActivity.java index 0e69ac8f..efbbb1f2 100644 --- a/subsonic-android/src/github/daneren2005/dsub/activity/SettingsActivity.java +++ b/subsonic-android/src/github/daneren2005/dsub/activity/SettingsActivity.java @@ -268,7 +268,7 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer try { String url = (String) value; new URL(url); - if (!url.equals(url.trim()) || url.contains("@")) { + if (!url.equals(url.trim()) || url.contains("@") || url.contains("_")) { throw new Exception(); } } catch (Exception x) { |