aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-09-25 18:07:17 -0700
committerScott Jackson <daneren2005@gmail.com>2012-09-25 18:07:17 -0700
commit66a15e90ba22ee9a5214a21ad04a95d39d421a1c (patch)
treeddf0d006de18bbee5ead274ba6bcd38560e7dda1
parent1b6fb979a5d39895024d872e292487081b498370 (diff)
downloaddsub-66a15e90ba22ee9a5214a21ad04a95d39d421a1c.tar.gz
dsub-66a15e90ba22ee9a5214a21ad04a95d39d421a1c.tar.bz2
dsub-66a15e90ba22ee9a5214a21ad04a95d39d421a1c.zip
Show error if server url contains underscore
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/SettingsActivity.java2
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) {