Skip to content
Snippets Groups Projects
Commit cf5b4351 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Replace vertical tabs befor parsing XML in XMLRPC

It seems that the 0x0B Vertical Tab character breaks the PHP
XML parser. This workaround replaces the char with a space
before parsing. Not ideal but good enough for now.
parent dfd343c4
No related branches found
No related tags found
No related merge requests found
......@@ -150,6 +150,7 @@ class IXR_Message {
$this->message = str_replace('&', '&', $this->message);
$this->message = str_replace(''', ''', $this->message);
$this->message = str_replace('"', '"', $this->message);
$this->message = str_replace("\x0b", ' ', $this->message); //vertical tab
if (trim($this->message) == '') {
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment