Skip to content

Fix GH-8538: SoapClient may strip parts of nmtokens #8543

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented May 12, 2022

When stripping the namespace prefix, we can assume that this does not
contain any colons, while the rest of the name may contain colons.
Hence we must not use strrchr() but rather strchr() instead.


There are 3 more occurrences of strrchr() in this file; I think those need to be changed as well, but I would like to get some review first; and maybe someone can provide a WSDL which would allow to test for all these cases.

When stripping the namespace prefix, we can assume that this does not
contain any colons, while the rest of the name may contain colons.
Hence we must not use `strrchr()` but rather `strchr()` instead.
@cmb69
Copy link
Member Author

cmb69 commented May 23, 2022

I'm going with this very patch, and treat the other strrchr() occurrences as innocent until proven guilty.

@cmb69 cmb69 closed this in 2a13304 May 23, 2022
@cmb69 cmb69 deleted the cmb/gh8538 branch May 23, 2022 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SoapClient can't parse WSDL file correctly
2 participants