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:
parent
9eda5b7f06
commit
823be602f4
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue