mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -158,7 +158,7 @@ class IXR_Message {
|
||||
}
|
||||
function parse() {
|
||||
// first remove the XML declaration
|
||||
$this->message = preg_replace('/<\?xml(.*)?\?'.'>/', '', $this->message);
|
||||
$this->message = preg_replace('/<\?xml.*?\?'.'>/', '', $this->message);
|
||||
if (trim($this->message) == '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user