You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2014/09/16 08:43:38 UTC
git commit: WW-4383 Clears output to avoid infinitive loops
Repository: struts
Updated Branches:
refs/heads/develop 3826c3098 -> f49b084fb
WW-4383 Clears output to avoid infinitive loops
Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/f49b084f
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/f49b084f
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/f49b084f
Branch: refs/heads/develop
Commit: f49b084fbe6b97313ad5f56f448e2fab70371692
Parents: 3826c30
Author: Lukasz Lenart <lu...@apache.org>
Authored: Tue Sep 16 08:42:11 2014 +0200
Committer: Lukasz Lenart <lu...@apache.org>
Committed: Tue Sep 16 08:42:11 2014 +0200
----------------------------------------------------------------------
.../java/org/apache/struts2/util/FastByteArrayOutputStream.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/struts/blob/f49b084f/core/src/main/java/org/apache/struts2/util/FastByteArrayOutputStream.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/struts2/util/FastByteArrayOutputStream.java b/core/src/main/java/org/apache/struts2/util/FastByteArrayOutputStream.java
index b116040..eb07fb1 100644
--- a/core/src/main/java/org/apache/struts2/util/FastByteArrayOutputStream.java
+++ b/core/src/main/java/org/apache/struts2/util/FastByteArrayOutputStream.java
@@ -191,6 +191,8 @@ public class FastByteArrayOutputStream extends OutputStream {
out.flip();
// Output
writer.write(out.toString());
+ // clear output to avoid infinitive loops, see WW-4383
+ out.clear();
return result;
}