summaryrefslogtreecommitdiff
path: root/inc/IXR_Library.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2010-03-22 23:37:31 +0100
committerAndreas Gohr <andi@splitbrain.org>2010-03-22 23:43:15 +0100
commitcf5b435169f81ea7da106ced2c6401bf83ac199f (patch)
tree4acb2684b9cc8809732fbe12e868ebc089ee261c /inc/IXR_Library.php
parentdfd343c40d85231f23176cfc6683eaccc0580a6d (diff)
downloadrpg-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.
Diffstat (limited to 'inc/IXR_Library.php')
-rw-r--r--inc/IXR_Library.php1
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('&amp;', '&#38;', $this->message);
$this->message = str_replace('&apos;', '&#39;', $this->message);
$this->message = str_replace('&quot;', '&#34;', $this->message);
+ $this->message = str_replace("\x0b", ' ', $this->message); //vertical tab
if (trim($this->message) == '') {
return false;
}