[New-bugs-announce] [issue18850] xml.etree.ElementTree accepts control chars.
Michele Orrù
report at bugs.python.org
Tue Aug 27 11:50:51 CEST 2013
New submission from Michele Orrù:
Got from irc;
<JerryKwan> python bug in xml.etree.ElementTree, from version 2.7 to 3.2 http://www.reddit.com/r/Python/comments/1l6cta/python_bug_in_xmletreeelementtree/
I think we should keep consistency with lxml and forbid control chars in advance.
<https://en.wikipedia.org/wiki/Valid_characters_in_XML#XML_1.1>
Attaching the test file proving the issue, slightly modified to work on 2.7 and 3.x
----------
files: test.py
messages: 196271
nosy: maker
priority: normal
severity: normal
status: open
title: xml.etree.ElementTree accepts control chars.
Added file: http://bugs.python.org/file31482/test.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18850>
_______________________________________
More information about the New-bugs-announce
mailing list