Skip to content
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

Address can not contain "&" character #374

Open
Nemo64 opened this issue Jun 22, 2023 · 0 comments
Open

Address can not contain "&" character #374

Nemo64 opened this issue Jun 22, 2023 · 0 comments

Comments

@Nemo64
Copy link

Nemo64 commented Jun 22, 2023

When I try to book something, using this SDK, that has the & character in the name, like a company "example GmbH & Co. KG", then I get the following error:

DOMDocument::createElement(): unterminated entity reference

So that means, all the createElement calls that have a value directly given can throw this error.
I build a small demo: https://onlinephp.io?s=s7EvyCjg5eLlUknJT1awVchLLVdw8fd1yU8uzU3NK9HQtAZK5eWnpALlQEp07ZKLUhNLUl1zUsHyShW5OUo6CkoZiTk5-QpqCuWpOSVKYE1gxYkFBal5Kc4ZmTkpGmBjQFKpyRn5UMOKE8tSI3x9gNYAAA%2C%2C&v=8.2.7

I looked though the source code and that way of setting the value of an xml node is used a lot.
All of these have this potential escaping issue.

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

No branches or pull requests

1 participant