diff --git a/lib/xmlrpc_lib.js b/lib/xmlrpc_lib.js index e97c914..080d409 100644 --- a/lib/xmlrpc_lib.js +++ b/lib/xmlrpc_lib.js @@ -876,6 +876,9 @@ xmlrpcval.prototype.init = function (val, type) { this.mytype = 3; this.myidx = 0; break; + case 'undefined': + this.mytype = 9; + break; default: xmlrpc_error_log('XML-RPC: xmlrpcval::xmlrpcval: not a known type ('+type+')'); } @@ -2657,6 +2660,14 @@ function parseXmlrpcValue(node, return_jsvals) break; } // fall through voluntarily + + case 'undefined': + var text = getChildText(child); + if (text != 'undefined') { + console.log("Warning: tag contained value: " + text + " (expected: string \"undefined\")"); + } + ret = null; + break; default: throw 'Found incorrect element inside \'value\' :'+ child.tagName;