mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-10 05:08:08 -05:00
Prepare WoodStox Xml10AllowAllEscapedChars setting implementation
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2251 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
58ae6e1e91
commit
77f9c8e5ad
@ -276,6 +276,12 @@ public abstract class StreamScanner
|
|||||||
*/
|
*/
|
||||||
protected boolean mNormalizeLFs;
|
protected boolean mNormalizeLFs;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Flag that indicates whether all escaped chars are accepted in XML 1.0.
|
||||||
|
*/
|
||||||
|
protected boolean mXml10AllowAllEscapedChars = true;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
// Buffer(s) for local name(s) and text content
|
// Buffer(s) for local name(s) and text content
|
||||||
@ -2383,11 +2389,13 @@ public abstract class StreamScanner
|
|||||||
if (value == 0) {
|
if (value == 0) {
|
||||||
throwParseError("Invalid character reference: null character not allowed in XML content.");
|
throwParseError("Invalid character reference: null character not allowed in XML content.");
|
||||||
}
|
}
|
||||||
// XML 1.1 allows most other chars; 1.0 does not: However Exchange sends such chars with XML 1.0
|
// XML 1.1 allows most other chars; 1.0 does not:
|
||||||
//if (!mXml11 &&
|
if (!mXml10AllowAllEscapedChars) {
|
||||||
// (value != 0x9 && value != 0xA && value != 0xD)) {
|
if (!mXml11 &&
|
||||||
// reportIllegalChar(value);
|
(value != 0x9 && value != 0xA && value != 0xD)) {
|
||||||
//}
|
reportIllegalChar(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user