Issue 4515, skip all control char in XML output except 09, 0A, 0D.

svn: r16336
This commit is contained in:
Peter Landgren 2011-01-05 10:45:32 +00:00
parent 51f2e26218
commit 4593c5f53f

View File

@ -79,8 +79,8 @@ try:
except:
_gzip_ok = 0
# table for skipping control chars from XML
strip_dict = dict.fromkeys(range(9)+range(12,20))
# table for skipping control chars from XML except 09, 0A, 0D
strip_dict = dict.fromkeys(range(9)+range(11,13)+range(14, 32))
def escxml(d):
return escape(d,