From eb2cef78be976d583e9089dfc7de0d93d8476f3d Mon Sep 17 00:00:00 2001 From: Dominik Eckelmann Date: Tue, 1 Jun 2010 10:55:36 +0200 Subject: bugfix empty strings in untyped value tag. according to the specs a value without a type is recognised as string. This patch handles empty value tags the right way as empty String. --- inc/IXR_Library.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'inc/IXR_Library.php') diff --git a/inc/IXR_Library.php b/inc/IXR_Library.php index 4f8eb31c1..9c270b1ce 100644 --- a/inc/IXR_Library.php +++ b/inc/IXR_Library.php @@ -225,11 +225,9 @@ class IXR_Message { break; case 'value': // "If no type is indicated, the type is string." - if (trim($this->_currentTagContents) != '') { - $value = (string)$this->_currentTagContents; - $this->_currentTagContents = ''; - $valueFlag = true; - } + $value = (string)$this->_currentTagContents; + $this->_currentTagContents = ''; + $valueFlag = true; break; case 'boolean': $value = (boolean)trim($this->_currentTagContents); -- cgit v1.2.3