Mercurial > hg > fapweb
diff register.inc.php @ 48:1fccb8f031ed
Fix e-mail check.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 05 Oct 2013 03:59:03 +0300 |
parents | 7be3f8cf1f7a |
children | c6b9041078ec |
line wrap: on
line diff
--- a/register.inc.php Sat Oct 05 00:49:28 2013 +0300 +++ b/register.inc.php Sat Oct 05 03:59:03 2013 +0300 @@ -137,7 +137,7 @@ stError("E-mail address not given, or it is too short."); } - if (strlen($email) >= 0 && (strpos($email, "@") === FALSE || strpos($email, ".") === FALSE)) + if (strlen($email) > 0 && (strpos($email, "@") === FALSE || strpos($email, ".") === FALSE)) stError("E-mail address not in proper format."); $hash = stGetRequestItem("hash");