diff options
author | Andreas Gohr <andi@splitbrain.org> | 2010-03-22 23:37:31 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2010-03-22 23:43:15 +0100 |
commit | cf5b435169f81ea7da106ced2c6401bf83ac199f (patch) | |
tree | 4acb2684b9cc8809732fbe12e868ebc089ee261c | |
parent | dfd343c40d85231f23176cfc6683eaccc0580a6d (diff) | |
download | rpg-cf5b435169f81ea7da106ced2c6401bf83ac199f.tar.gz rpg-cf5b435169f81ea7da106ced2c6401bf83ac199f.tar.bz2 |
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.
-rw-r--r-- | inc/IXR_Library.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/IXR_Library.php b/inc/IXR_Library.php index afa496aed..4f8eb31c1 100644 --- a/inc/IXR_Library.php +++ b/inc/IXR_Library.php @@ -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; } |