Message28302
| Author |
gusarov |
| Recipients |
| Date |
2006年04月19日.08:29:37 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
xml.sax.saxutils.XMLGenerator does not escape \r, \n,
\t symbols when they are present in the attribute:
startElement("name", {"attrib": "value\nvalue"}) will
result in
<name attrib="value
value">
which will be normalized by XML parser to <name
attrib="value value">
According to the XML specs, to preserve this symbols in
the attribute values, they should be replaced with \xD;
\xA; \x9;
Trivial fix is to replace those characters in
xml.sax.saxutils.writeattr
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 14:39:33 | admin | link | issue1472827 messages |
| 2007年08月23日 14:39:33 | admin | create |
|