From 357418a39660124e17c1b2b726639223b5f8db7b Mon Sep 17 00:00:00 2001 From: Matthew Brace Date: Wed, 21 Jan 2009 05:33:27 +0000 Subject: [PATCH] Removed ability to add slashes/url type parameters onto the server. --- src/com/android/email/Utility.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/email/Utility.java b/src/com/android/email/Utility.java index 0e33ef3c6..f726a59b8 100644 --- a/src/com/android/email/Utility.java +++ b/src/com/android/email/Utility.java @@ -85,7 +85,7 @@ public class Utility { public static boolean domainFieldValid(EditText view) { if (view.getText() != null) { String s = view.getText().toString(); - if (s.matches("^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}(\\/([a-zA-Z0-9\\-~])+)?$")) { + if (s.matches("^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$")) { return true; } if (s.matches("^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$")) {