Details
Description
Emails to support departments may fail to be created as tickets in the support system if the email comes from an email address. This is possible, for example, if the email is from a spammer that included a spoofed From address.
The result is that all emails parsed for the support department after the invalid email is parsed are unable to be imported into the support system.
Here's a fix:
Open /plugins/support_manager/components/ticket_manager/ticket_manager.php and find the following three lines:
$from = $this->EmailParser->getAddress($email, "from");
if (isset($from[0]))
$from = $from[0];
After those lines, add the following on a new line:
$from = (is_string($from) ? $from : '');
Save the change.