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

git-svn-id: https://develop.svn.wordpress.org/trunk@10318 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-01-06 05:28:53 +00:00
parent 9eda5b7f06
commit 823be602f4
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class IXR_Message {
} }
function parse() { function parse() {
// first remove the XML declaration // first remove the XML declaration
$this->message = preg_replace('/<\?xml(.*)?\?'.'>/', '', $this->message); $this->message = preg_replace('/<\?xml.*?\?'.'>/', '', $this->message);
if (trim($this->message) == '') { if (trim($this->message) == '') {
return false; return false;
} }