diff --git a/html/user/create_account_action.php b/html/user/create_account_action.php index 2d60cc7e2f..fb59c47673 100644 --- a/html/user/create_account_action.php +++ b/html/user/create_account_action.php @@ -58,13 +58,13 @@ if (!is_valid_email_addr($new_email_addr)) { name@domain" ); } -$query = "select * from user where email_addr='$new_email_addr' or email_addr like '@$new_email_addr_%' limit 1"; +$query = "select * from user where email_addr='$new_email_addr' or email_addr like '@$new_email_addr\\_%' limit 1"; $result = mysql_query($query); if ($result) { $user = mysql_fetch_object($result); mysql_free_result($result); if ($user) { - show_error("There's already an account with that email address"); + show_error("There's already an account with that email address."); } }