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

Improved fix to consider any char <= 32.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches/3_3_1_branch@8617 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5f3cf7e6
......@@ -157,7 +157,7 @@ class XMLLightweightParser {
buffer.append(buf);
// Do nothing if the buffer only contains white spaces
if (' ' == buffer.charAt(0) && ' ' == buffer.charAt(buffer.length()-1)) {
if (buffer.charAt(0) <= ' ' && buffer.charAt(buffer.length()-1) <= ' ') {
if ("".equals(buffer.toString().trim())) {
// Empty the buffer so there is no memory leak
buffer.delete(0, buffer.length());
......
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