Skip to content

Commit

Permalink
fix: boolean is true if content is the string '1'
Browse files Browse the repository at this point in the history
XML does not contain numbers
  • Loading branch information
julien-f authored Apr 25, 2024
1 parent 402b4b6 commit 0a661a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/xmlrpc-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ XmlRpcParser.prototype.getHandler = function getHandler() {
// Parse a boolean into the JS equivalent.
case 'boolean':
instance.isImplicitString = false;
instance.valueStack.push(cdata === 'true' || cdata === 1);
instance.valueStack.push(cdata === 'true' || cdata === '1');
break;
// Parse a date from its ISO 8601 representation.
case 'dateTime.iso8601':
Expand Down

0 comments on commit 0a661a8

Please sign in to comment.