summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2006-04-20 05:44:50 (GMT)
committer Dries Buytaert2006-04-20 05:44:50 (GMT)
commitad321230332541e848627affa75a3b2ba46c6964 (patch)
tree298787eaefe3e36147a315cba3199e705aaa8ec3
parentba27e6083e8707ce9213dc9582dc0eb5e5cf85da (diff)
- Patch #59513 by chx: critical bugfix: XML-RPC drops empty parameters.
-rw-r--r--includes/xmlrpc.inc7
1 files changed, 2 insertions, 5 deletions
diff --git a/includes/xmlrpc.inc b/includes/xmlrpc.inc
index 119ca4b..9349949 100644
--- a/includes/xmlrpc.inc
+++ b/includes/xmlrpc.inc
@@ -211,11 +211,8 @@ function xmlrpc_message_tag_close($parser, $tag) {
$value_flag = TRUE;
break;
case 'value':
- // "If no type is indicated, the type is string."
- if (trim($xmlrpc_message->current_tag_contents) != '') {
- $value = (string)$xmlrpc_message->current_tag_contents;
- $value_flag = TRUE;
- }
+ $value = (string)$xmlrpc_message->current_tag_contents;
+ $value_flag = TRUE;
break;
case 'boolean':
$value = (boolean)trim($xmlrpc_message->current_tag_contents);