Fixes #1201, we are now not allowed to finish an email address by .

This commit is contained in:
Benjamin Sonntag 2009-12-01 00:06:23 +00:00
parent 00f6ca70d3
commit 761809aea5
1 changed files with 1 additions and 1 deletions

View File

@ -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;