Skip to content

Commit

Permalink
bugfix empty strings in untyped value tag.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dom-mel authored and splitbrain committed Jun 8, 2010
1 parent d059be8 commit eb2cef7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions inc/IXR_Library.php
Expand Up @@ -225,11 +225,9 @@ function tag_close($parser, $tag) {
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);
Expand Down

0 comments on commit eb2cef7

Please sign in to comment.