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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to