Commit 75d1e7b0 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/trunk@8618 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0841ca0b
......@@ -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