[issue7727] xmlrpc library returns string which contain null ( \x00 )
Serhiy Storchaka
report at bugs.python.org
Wed May 22 14:11:04 CEST 2013
Serhiy Storchaka added the comment:
The limitations is already documented:
"""However, it’s the caller’s responsibility to ensure that the string is free of characters that aren’t allowed in XML, such as the control characters with ASCII values between 0 and 31 (except, of course, tab, newline and carriage return); failing to do this will result in an XML-RPC request that isn’t well-formed XML. If you have to pass arbitrary bytes via XML-RPC, use the bytes class or the class:Binary wrapper class described below."""
Here is a patch which forbids creating ill-formed XML.
----------
nosy: +serhiy.storchaka
stage: test needed -> patch review
versions: +Python 2.7, Python 3.3, Python 3.4 -Python 2.6
Added file: http://bugs.python.org/file30339/xmlrpc_dump_invalid_string.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7727>
_______________________________________
More information about the Python-bugs-list
mailing list