From 9f4e453efdae5c05ddc55d136d03a64764d47184 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Fri, 20 Sep 2013 16:54:20 -0500 Subject: [PATCH] Fix email address comparison issue When comparing the From address of incoming email. If the ticket owner sent an email back into the system and the email address did not match exactly, case-wise, the email would not be considered from the ticket owner. --- include/class.thread.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.thread.php b/include/class.thread.php index c31a19151..8c923c482 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -533,7 +533,7 @@ Class ThreadEntry { // Disambiguate if the user happens also to be a staff member of the // system. The current ticket owner should _always_ post messages // instead of notes or responses - if ($mailinfo['email'] == $ticket->getEmail()) { + if (strcasecmp($mailinfo['email'], $ticket->getEmail()) == 0) { $vars['message'] = $body; return $ticket->postMessage($vars, 'Email'); } -- GitLab