Skip to content

Fix #69668: SOAP special XML characters in namespace URIs not encoded #6804

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 Mar 24, 2021

xmlNewNs() does not XML encode the passed href, so we need to do
that manually.

`xmlNewNs()` does not XML encode the passed `href`, so we need to do
that manually.
@cmb69 cmb69 added the Bug label Mar 24, 2021
Copy link
Member

@nikic nikic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable, though I guess there's a risk that someone was working around the previous behavior with manual escaping.

@cmb69
Copy link
Member Author

cmb69 commented Mar 25, 2021

At least regarding the bug report that was not possible, because the namespace URI was part of the WSDL, unescaped during read and written back as is. But there might be cases where manual escaping is possible.

@cmb69 cmb69 closed this in 75cb678 Mar 29, 2021
@cmb69 cmb69 deleted the cmb/69668 branch March 29, 2021 12:21
@LastDragon-ru
Copy link

Actually, we escaped it by hand... But the code works only with PHP 5 and there are no plans for upgrade.

kamil-tekiela pushed a commit to kamil-tekiela/php-src that referenced this pull request Apr 4, 2021
`xmlNewNs()` does not XML encode the passed `href`, so we need to do
that manually.

Closes phpGH-6804.

Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants