Skip to content

Commit

Permalink
Fix email address comparison issue
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Jared Hancock committed Sep 20, 2013
1 parent 3d10e76 commit f29ae50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/class.thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit f29ae50

Please sign in to comment.