From 761809aea54faf6eee716f04a56109135fe6db08 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Tue, 1 Dec 2009 00:06:23 +0000 Subject: [PATCH] Fixes #1201, we are now not allowed to finish an email address by . --- bureau/class/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/functions.php b/bureau/class/functions.php index 2a603e40..bce820e6 100644 --- a/bureau/class/functions.php +++ b/bureau/class/functions.php @@ -126,7 +126,7 @@ function checkip($ip) { /* Check a login mail */ function checkloginmail($mail) { - if (!preg_match("/^[a-zA-Z0-9_\.:\+\-]+$/",$mail)) { + if (!preg_match("/^[a-zA-Z0-9_\.:\+\-]*[a-zA-Z0-9_]$/",$mail)) { return false; } else { return true;