XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Confirmed
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 5.4.9, 1.9.0
    • Fix Version/s: Customer request
    • Component/s: Misc
    • Labels:
      None

      Description

      In the EzPublishLegacyBundle/LegacyResponse/LegacyResponseManager.php file, mapHeaders() method, it's possible that the $header is empty or malformed what will result in unnecessary undefined index and undefined offset warnings

      public function mapHeaders( array $headers, Response $response )
      {
          foreach ( $headers as $header )
          {
              $headerArray = explode( ": ", $header, 2 );
              $headerName = strtolower( $headerArray[0] );
              $headerValue = $headerArray[1];

      It's important that these warnings are handled and to check if the indexes exist before trying to execute any code.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            eduardo.fernandes-obsolete@ez.no Eduardo Fernandes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: