# HG changeset patch # User Matti Hamalainen # Date 1380934743 -10800 # Node ID 1fccb8f031ed769707f3c0cdcdaf993c4e74af8b # Parent 73123e322133ed840d3f76020f19734dfeedace6 Fix e-mail check. diff -r 73123e322133 -r 1fccb8f031ed register.inc.php --- 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");