Open siimtalts opened 4 years ago
@siimtalts Please send in a PR if you are interested to fix it, I will have it reviewed and merged.
Opening up SDK for hacktoberfest contributions.
Hacktoberfest is underway right now and we would love for you to contribute 🚀 . More information on #hacktoberfest is here
is the issue open?
When fetching a payments via API the response has illegal characters:
Notice the weird symbol in
nameonacct
. This is illegal characer and results in an fatal error thrown bysimplexml_load_string
inXmlObjectSerializer
. I know this is because legacy data, as I wasn't able to reproduce this with new entries in QB, but it needs to be fixed, because we are dealing with importing older datasets with this SDK.Solution: implement XML sanitization. An example code snippet can be found from here: https://www.ryadel.com/en/php-skip-invalid-characters-utf-8-xml-file-string/