velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r588792 - /velocity/tools/trunk/src/java/org/apache/velocity/tools/generic/RenderTool.java
Date Fri, 26 Oct 2007 23:11:34 GMT
Author: nbubna
Date: Fri Oct 26 16:11:34 2007
New Revision: 588792

URL: http://svn.apache.org/viewvc?rev=588792&view=rev
Log:
VELTOOLS-87 fix infinite recursion in RenderTool(thx Andrea Bernardo Ciddio)

Modified:
    velocity/tools/trunk/src/java/org/apache/velocity/tools/generic/RenderTool.java

Modified: velocity/tools/trunk/src/java/org/apache/velocity/tools/generic/RenderTool.java
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/src/java/org/apache/velocity/tools/generic/RenderTool.java?rev=588792&r1=588791&r2=588792&view=diff
==============================================================================
--- velocity/tools/trunk/src/java/org/apache/velocity/tools/generic/RenderTool.java (original)
+++ velocity/tools/trunk/src/java/org/apache/velocity/tools/generic/RenderTool.java Fri Oct
26 16:11:34 2007
@@ -252,7 +252,7 @@
             if (count < parseDepth)
             {
                 // continue recursing
-                return internalRecurse(ctx, result, count++);
+                return internalRecurse(ctx, result, count + 1);
             }
             else
             {



Mime
View raw message