cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jjohns...@apache.org
Subject svn commit: r531552 - in /cocoon/branches/BRANCH_2_1_X: src/java/org/apache/cocoon/xml/ParamSaxBuffer.java status.xml
Date Mon, 23 Apr 2007 18:21:02 GMT
Author: jjohnston
Date: Mon Apr 23 11:21:01 2007
New Revision: 531552

URL: http://svn.apache.org/viewvc?view=rev&rev=531552
Log:
Fix for COCOON-1315 - when substitution params like {0} are split over multiple character
events, do not write out extra garbage characters. Thanks to Gunnar Brand for the fix.

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/xml/ParamSaxBuffer.java
    cocoon/branches/BRANCH_2_1_X/status.xml

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/xml/ParamSaxBuffer.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/xml/ParamSaxBuffer.java?view=diff&rev=531552&r1=531551&r2=531552
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/xml/ParamSaxBuffer.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/xml/ParamSaxBuffer.java Mon Apr
23 11:21:01 2007
@@ -98,7 +98,7 @@
                     // provides the '}'
                     previous_ch = new char[end - i];
                     System.arraycopy(ch, i, previous_ch, 0, end - i);
-                    break;
+                    return;
                 }
                 addBit(new Parameter(name.toString()));
 

Modified: cocoon/branches/BRANCH_2_1_X/status.xml
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/status.xml?view=diff&rev=531552&r1=531551&r2=531552
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/status.xml (original)
+++ cocoon/branches/BRANCH_2_1_X/status.xml Mon Apr 23 11:21:01 2007
@@ -181,6 +181,10 @@
 
   <changes>
   <release version="2.1.11" date="TBD">
+    <action dev="JJ" type="fix" fixes-bug="COCOON-1315" due-to="Gunnar Brand" due-to-email="g.brand@interface-business.de">
+      I18n (ParamSaxBuffer): when substitution params like {0} are split over multiple character
+      events, do not write out extra garbage characters.
+    </action>
     <action dev="RG" type="fix">
       Portal: Marked PreparePortalAction, CopletSetDataAction, and ObjectModelAction ThreadSafe
     </action>



Mime
View raw message