From aa22d5c594a8ff5cb019db1765cfcd815e7cc0e3 Mon Sep 17 00:00:00 2001 From: Arnold Bechtoldt Date: Thu, 8 Mar 2012 17:02:57 +0100 Subject: [PATCH] Make check of creating e-mail addresses case-insensitive, thanks to d4f, fixes #1021 --- customer_email.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/customer_email.php b/customer_email.php index b6cebb24..c0198d1b 100644 --- a/customer_email.php +++ b/customer_email.php @@ -237,7 +237,7 @@ elseif($page == 'emails') standard_error('emailiswrong', $email_full); } - $email_check = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE ( `email`='" . $db->escape($email) . "' OR `email_full` = '" . $db->escape($email_full) . "' ) AND `customerid`='" . (int)$userinfo['customerid'] . "'"); + $email_check = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE (`email` LIKE '" . $db->escape($email) . "' OR `email_full` LIKE '" . $db->escape($email_full) . "') AND `customerid`='" . (int)$userinfo['customerid'] . "'"); if($email == '' || $email_full == ''