Commit e9a0ce86 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Allow NULL chars as valid characters. JM-1421

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10912 b35dd754-fafc-0310-a699-88a17e54d16e
parent 7ff0d3fc
......@@ -205,8 +205,9 @@ class XMLLightweightParser {
boolean isHighSurrogate = false;
for (int i = 0; i < readByte; i++) {
ch = buf[i];
if (ch < 0x20 && ch != 0x9 && ch != 0xA && ch != 0xD) {
//Unicode characters in the range 0x0000-0x001F other than 9, A, and D are not allowed in XML
if (ch < 0x20 && ch != 0x9 && ch != 0xA && ch != 0xD && ch != 0x0) {
//Unicode characters in the range 0x0000-0x001F other than 9, A, and D are not allowed in XML
//We need to allow the NULL character, however, for Flash XMLSocket clients to work.
throw new Exception("Disallowed character");
}
if (isHighSurrogate) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment