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

Xml parsing error Char 0x0 out of allowed range #99

Open
archie18 opened this issue Oct 14, 2015 · 1 comment
Open

Xml parsing error Char 0x0 out of allowed range #99

archie18 opened this issue Oct 14, 2015 · 1 comment

Comments

@archie18
Copy link

I encountered a problem with user data containing a NUL character (0x0) and the XmlParser throws the following exception:

[1] PHPPdf\Parser\Exception\ParseException: Xml parsing error "Char 0x0 out of allowed range
" in file "/Library/WebServer/Documents/Postgrado/web/" on line 126 on column 1063
    at n/a
        in /Library/WebServer/Documents/Postgrado/vendor/psliwa/php-pdf/lib/PHPPdf/Parser/XmlParser.php line 121

    at PHPPdf\Parser\XmlParser->read(object(XMLReader))
        in /Library/WebServer/Documents/Postgrado/vendor/psliwa/php-pdf/lib/PHPPdf/Parser/XmlParser.php line 59

    at PHPPdf\Parser\XmlParser->parse('...')

What would be the recommended way to sanitize my XML data?

Best,
Andreas

@aledeg
Copy link
Contributor

aledeg commented Mar 6, 2016

Could you post your XML so we can reproduce the error?

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

2 participants