Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2074

Support Manager: Tickets emailed in may fail to be added if one has an invalid from address

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 4.0.0-b1
    • Component/s: Plugins
    • Labels:
      None

      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.

        Activity

        tyson Tyson Phillips (Inactive) created issue -
        tyson Tyson Phillips (Inactive) made changes -
        Field Original Value New Value
        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:
        {{
        $from = (is_string($from) ? $from : '');
        }}

        Save the change.
        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:
        {quote}$from = $this->EmailParser->getAddress($email, "from");
        if (isset($from[0]))
        $from = $from[0];{quote}


        After those lines, add the following:
        {quote}$from = (is_string($from) ? $from : '');{quote}


        Save the change.
        tyson Tyson Phillips (Inactive) made changes -
        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:
        {quote}$from = $this->EmailParser->getAddress($email, "from");
        if (isset($from[0]))
        $from = $from[0];{quote}


        After those lines, add the following:
        {quote}$from = (is_string($from) ? $from : '');{quote}


        Save the change.
        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:
        {quote}$from = $this->EmailParser->getAddress($email, "from");
        if (isset($from[0]))
        $from = $from[0];{quote}


        After those lines, add the following on a new line:
        {quote}$from = (is_string($from) ? $from : '');{quote}


        Save the change.
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked higher
        Automated transition triggered when Tyson Phillips (Inactive) created a branch in Stash -
        Status Open [ 1 ] In Progress [ 3 ]
        tyson Tyson Phillips (Inactive) made changes -
        Summary Support Manager: Tickets emailed in may fail to be added if one has an invalid from addres Support Manager: Tickets emailed in may fail to be added if one has an invalid from address
        Automated transition triggered when Tyson Phillips (Inactive) created pull request #5 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        Automated transition triggered when Cody Phillips (Inactive) merged pull request #5 in Stash -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/Sep/16