From f29ae50dec9ab62d18a0d2e838a6dbb40f7d0d0a Mon Sep 17 00:00:00 2001 From: Jared Hancock 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 c31a1915..8c923c48 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -533,7 +533,7 @@ function postEmail($mailinfo) { // 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'); }