aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-07-30 10:04:03 -0700
committerdaneren2005 <daneren2005@gmail.com>2013-07-30 10:04:03 -0700
commita46455a2365e82ccc59fe73c2f11a02f1dcb0e3d (patch)
treeba27f0ac7e8f8df45bf364de81de862f4edfccd1 /src
parentbcba7ff613fbb532391722e806f19b73fe006804 (diff)
downloaddsub-a46455a2365e82ccc59fe73c2f11a02f1dcb0e3d.tar.gz
dsub-a46455a2365e82ccc59fe73c2f11a02f1dcb0e3d.tar.bz2
dsub-a46455a2365e82ccc59fe73c2f11a02f1dcb0e3d.zip
Don't allow spaces in the url
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/activity/SettingsActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/activity/SettingsActivity.java b/src/github/daneren2005/dsub/activity/SettingsActivity.java
index fc56281e..89d475d3 100644
--- a/src/github/daneren2005/dsub/activity/SettingsActivity.java
+++ b/src/github/daneren2005/dsub/activity/SettingsActivity.java
@@ -504,7 +504,7 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer
try {
String url = (String) value;
new URL(url);
- if (!url.equals(url.trim()) || url.contains("@") || url.contains("_")) {
+ if (url.contains(" ") || url.contains("@") || url.contains("_")) {
throw new Exception();
}
} catch (Exception x) {