diff options
author | Dominik Eckelmann <deckelmann@gmail.com> | 2010-06-01 10:55:36 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2010-06-08 21:27:27 +0200 |
commit | eb2cef78be976d583e9089dfc7de0d93d8476f3d (patch) | |
tree | 61fd5ac77797538c430bf4d09776cdea68d1ee86 /inc | |
parent | d059be8cf238dc11f453f013f0d175d16ddb8a12 (diff) | |
download | rpg-eb2cef78be976d583e9089dfc7de0d93d8476f3d.tar.gz rpg-eb2cef78be976d583e9089dfc7de0d93d8476f3d.tar.bz2 |
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.
Diffstat (limited to 'inc')
-rw-r--r-- | inc/IXR_Library.php | 8 |
1 files changed, 3 insertions, 5 deletions
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); |