From cf5b435169f81ea7da106ced2c6401bf83ac199f Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Mon, 22 Mar 2010 23:37:31 +0100 Subject: [PATCH] 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. --- inc/IXR_Library.php | 1 + 1 file changed, 1 insertion(+) 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; } -- GitLab