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

git-svn-id: http://svn.automattic.com/wordpress/trunk@10318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-01-06 05:28:53 +00:00
parent 8d72414561
commit 33a8201a89
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;
} }