WordPress.org

Make WordPress Core

Changeset 17599


Ignore:
Timestamp:
04/05/2011 06:21:56 AM (7 years ago)
Author:
dd32
Message:

Fix warning in HTTP Header parsing where response message is not specified. Props hakre. Fixes #16885

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-http.php

    r17598 r17599  
    363363
    364364            if ( false === strpos($tempheader, ':') ) {
    365                 list( , $response['code'], $response['message']) = explode(' ', $tempheader, 3);
     365                $stack = explode(' ', $tempheader, 3);
     366                $stack[] = '';
     367                list( , $response['code'], $response['message']) = $stack;
    366368                continue;
    367369            }
Note: See TracChangeset for help on using the changeset viewer.