Skip to content
Snippets Groups Projects
Commit 9f4e453e authored by Jared Hancock's avatar Jared Hancock
Browse files

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.
parent 6603bfa5
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment