]> git.sesse.net Git - mlt/commit
quick fix for xml containing bad characters
authorDan Dennedy <dan@dennedy.org>
Sun, 22 Jan 2012 23:13:49 +0000 (15:13 -0800)
committerDan Dennedy <dan@dennedy.org>
Sun, 22 Jan 2012 23:13:49 +0000 (15:13 -0800)
commitab4f5ab7148b76ac532eea9273185c53130afd80
tree78648b3e39d46325775e9c93b4807f559a8dd0ae
parentf1cc48782ea578077de95c6c6e523290b719a929
quick fix for xml containing bad characters

Per the XML standard only the following characters are permitted:
Char       ::=      #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
[#x10000-#x10FFFF]  /* any Unicode character, excluding the surrogate
blocks, FFFE, and FFFF. */

This fix does not properly handle the ranges for multi-byte characters,
but it does remove the invalid single-byte "control characters."
src/modules/xml/consumer_xml.c