WordPress.org

Make WordPress Core

Changeset 5445


Ignore:
Timestamp:
05/11/07 03:21:06 (8 years ago)
Author:
rob1n
Message:

Fix for PHP version 5.2.2 where $HTTP_RAW_POST_DATA isn't set. fixes #4248

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r5292 r5445  
    55// Some browser-embedded clients send cookies. We don't want them. 
    66$_COOKIE = array(); 
     7 
     8// A bug in PHP < 5.2.2 makes $HTTP_RAW_POST_DATA not set by default,  
     9// but we can do it ourself. 
     10if ( !isset( $HTTP_RAW_POST_DATA ) ) { 
     11    $HTTP_RAW_POST_DATA = file_get_contents( 'php://input' ); 
     12} 
    713 
    814# fix for mozBlog and other cases where '<?xml' isn't on the very first line 
Note: See TracChangeset for help on using the changeset viewer.