Fixes #1201, we are now not allowed to finish an email address by .
This commit is contained in:
parent
00f6ca70d3
commit
761809aea5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue