You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by lu...@apache.org on 2002/12/03 02:58:36 UTC
cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime PageContextImpl.java
luehe 2002/12/02 17:58:36
Modified: jasper2/src/share/org/apache/jasper/runtime
PageContextImpl.java
Log:
Fixed Bugtraq 4787293: JspContext.popBody and Jsp/PageContext.pushBody don't
update "out" attribute
Revision Changes Path
1.37 +12 -3 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java
Index: PageContextImpl.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- PageContextImpl.java 27 Nov 2002 02:31:29 -0000 1.36
+++ PageContextImpl.java 3 Dec 2002 01:58:36 -0000 1.37
@@ -530,6 +530,10 @@
outs[depth].setWriter(writer);
out = outs[depth];
+ // Update the value of the "out" attribute in the page scope
+ // attribute namespace of this PageContext
+ setAttribute(OUT, out);
+
return outs[depth];
}
@@ -540,6 +544,11 @@
} else {
out = baseOut;
}
+
+ // Update the value of the "out" attribute in the page scope
+ // attribute namespace of this PageContext
+ setAttribute(OUT, out);
+
return out;
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>