From 66a15e90ba22ee9a5214a21ad04a95d39d421a1c Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 25 Sep 2012 18:07:17 -0700 Subject: Show error if server url contains underscore --- .../src/github/daneren2005/dsub/activity/SettingsActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3