incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1183387 - in /incubator/lcf/trunk: CHANGES.txt framework/agents/src/main/java/org/apache/manifoldcf/agents/common/XMLWriterContext.java
Date Fri, 14 Oct 2011 15:35:09 GMT
Author: kwright
Date: Fri Oct 14 15:35:08 2011
New Revision: 1183387

URL: http://svn.apache.org/viewvc?rev=1183387&view=rev
Log:
Fix for CONNECTORS-274.  A long-standing XML parsing problem occurred when XML constructs
were found inside a tag body.

Modified:
    incubator/lcf/trunk/CHANGES.txt
    incubator/lcf/trunk/framework/agents/src/main/java/org/apache/manifoldcf/agents/common/XMLWriterContext.java

Modified: incubator/lcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/CHANGES.txt?rev=1183387&r1=1183386&r2=1183387&view=diff
==============================================================================
--- incubator/lcf/trunk/CHANGES.txt (original)
+++ incubator/lcf/trunk/CHANGES.txt Fri Oct 14 15:35:08 2011
@@ -3,6 +3,10 @@ $Id$
 
 ======================= 0.4-dev =====================
 
+CONNECTORS-274: Fix long-standing problem with XML parsing, which
+affected the wiki connector in a big way.
+(Tobias Wunderlich, Karl Wright)
+
 CONNECTORS-256: Add a Wiki connector, including basic sanity tests
 and build logic.
 (Karl Wright, Tobias Wunderlich)

Modified: incubator/lcf/trunk/framework/agents/src/main/java/org/apache/manifoldcf/agents/common/XMLWriterContext.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/agents/src/main/java/org/apache/manifoldcf/agents/common/XMLWriterContext.java?rev=1183387&r1=1183386&r2=1183387&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/agents/src/main/java/org/apache/manifoldcf/agents/common/XMLWriterContext.java
(original)
+++ incubator/lcf/trunk/framework/agents/src/main/java/org/apache/manifoldcf/agents/common/XMLWriterContext.java
Fri Oct 14 15:35:08 2011
@@ -182,7 +182,7 @@ public class XMLWriterContext extends XM
   /** Escapes sequence of characters to output writer */
   protected static void escapeCharData(char [] chars, int start, int length, Writer out)
throws IOException
   {
-    for (int i=start; i<length; i++) {
+    for (int i=start; i<start+length; i++) {
       char x = chars[i];
       if (x == '<' || x == '>' || x == '&'|| (x < ' ' && x >= 0))
       {



Mime
View raw message