Skip to content

Prevent sending Object prototype methods as XML#699

Merged
jsdevel merged 1 commit into
vpulim:masterfrom
ClaudiaJ:patch-1
Oct 23, 2015
Merged

Prevent sending Object prototype methods as XML#699
jsdevel merged 1 commit into
vpulim:masterfrom
ClaudiaJ:patch-1

Conversation

@ClaudiaJ

Copy link
Copy Markdown
Contributor

Adds Object.prototype.hasOwnProperty check in WSDL.prototype.objectToRpcXML and WSDL.prototype.objectToXML.

This prevents sending arbitrary Javascript as XML nodes when working with Classes (var clientArgs = new Order(ordNum, qty)).

Adds `Object.prototype.hasOwnProperty` check in `WSDL.prototype.objectToRpcXML` and `WSDL.prototype.objectToXML`.

This prevents sending arbitrary Javascript has XML nodes.
@ClaudiaJ

Copy link
Copy Markdown
Contributor Author

I can't seem to reproduce this failure. Any help or advice as to how to proceed on this PR?

@herom

herom commented Sep 28, 2015

Copy link
Copy Markdown
Contributor

Thanks a lot for your time and effort @ClaudiaJ 👍

The error had something to do with timeouts over at TravisCI - this should be fixed by a restart. Nonetheless I'd ask you to add a test in order to get your PR merged (as stated in our Guidelines for Submitting a PR. Thanks 😃

jsdevel added a commit that referenced this pull request Oct 23, 2015
Prevent sending Object prototype methods as XML
@jsdevel
jsdevel merged commit 6aa4991 into vpulim:master Oct 23, 2015
@jsdevel

jsdevel commented Oct 23, 2015

Copy link
Copy Markdown
Collaborator

Thanks @ClaudiaJ ! I restarted the tests and they passed.

diarmaidm pushed a commit to diarmaidm/node-soap that referenced this pull request Feb 3, 2016
Prevent sending Object prototype methods as XML
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants