WordPress.org

Make WordPress Core

Changeset 10318


Ignore:
Timestamp:
01/06/09 05:28:53 (7 years ago)
Author:
azaozz
Message:

Fix parse error.not well formed on XMLRPC request, props josephscott, fixes #7794

File:
1 edited

Legend:

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

    r10313 r10318  
    159159    function parse() { 
    160160        // first remove the XML declaration 
    161         $this->message = preg_replace('/<\?xml(.*)?\?'.'>/', '', $this->message); 
     161        $this->message = preg_replace('/<\?xml.*?\?'.'>/', '', $this->message); 
    162162        if (trim($this->message) == '') { 
    163163            return false; 
Note: See TracChangeset for help on using the changeset viewer.