From 6415b65ac92a29335104d9aac583d0ed8b37196f Mon Sep 17 00:00:00 2001 From: Callan Barrett Date: Sun, 21 Dec 2008 20:25:42 +0900 Subject: Fix up valid email function, FS#12269 All we're looking for now is an @ in any email address to fix problem with not being able to have + in addresses and just because I see no advantage to having any sort of stringent validation Signed-off-by: Callan Barrett Signed-off-by: Loui Chang --- web/lib/aur.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') diff --git a/web/lib/aur.inc b/web/lib/aur.inc index 121c692..e82f0ea 100644 --- a/web/lib/aur.inc +++ b/web/lib/aur.inc @@ -132,7 +132,7 @@ function check_sid() { # verify that an email address looks like it is legitimate # function valid_email($addy) { - return eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,4}$", $addy); + return strpos($addy, '@'); } # a new seed value for mt_srand() -- cgit v1.2.3-70-g09d2