summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorCallan Barrett <wizzomafizzo@gmail.com>2008-12-21 20:25:42 +0900
committerLoui Chang <louipc.ist@gmail.com>2008-12-21 12:42:26 -0500
commit6415b65ac92a29335104d9aac583d0ed8b37196f (patch)
treef1a7908ab2039c3aed3a0460fb735975b16a1391 /web
parent78c2b5c67faec190985c3fb9509e942add4dc54c (diff)
downloadaurweb-6415b65ac92a29335104d9aac583d0ed8b37196f.tar.xz
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 <wizzomafizzo@gmail.com> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web')
-rw-r--r--web/lib/aur.inc2
1 files changed, 1 insertions, 1 deletions
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()