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

Added line feed as another possible heartbeat character.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3230 b35dd754-fafc-0310-a699-88a17e54d16e
parent bc14a661
...@@ -17,8 +17,8 @@ import org.xmlpull.v1.XmlPullParser; ...@@ -17,8 +17,8 @@ import org.xmlpull.v1.XmlPullParser;
import java.io.IOException; import java.io.IOException;
/** /**
* MXParser that returns an IGNORABLE_WHITESPACE event when a whitespace character is received. * MXParser that returns an IGNORABLE_WHITESPACE event when a whitespace character or a
* This parser is useful when not validating documents. * line feed is received. This parser is useful when not validating documents.
* *
* @author Gaston Dombiak * @author Gaston Dombiak
*/ */
...@@ -256,7 +256,7 @@ public class MXParser extends org.xmlpull.mxp1.MXParser { ...@@ -256,7 +256,7 @@ public class MXParser extends org.xmlpull.mxp1.MXParser {
do { do {
// check that ]]> does not show in // check that ]]> does not show in
if (eventType == XmlPullParser.END_TAG && ch == ' ') { if (eventType == XmlPullParser.END_TAG && (ch == ' ' || ch == '\n')) {
// ** ADDED CODE (INCLUDING IF STATEMENT) // ** ADDED CODE (INCLUDING IF STATEMENT)
return IGNORABLE_WHITESPACE; return IGNORABLE_WHITESPACE;
} }
......
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