cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/servlet CocoonServlet.java
Date Mon, 18 Dec 2000 16:55:26 GMT
bloritsch    00/12/18 08:55:24

  Modified:    src/org/apache/cocoon/components/language/markup/xsp Tag:
                        xml-cocoon2 XSPResponseHelper.java
               src/org/apache/cocoon/components/language/markup/xsp/java
                        Tag: xml-cocoon2 xsp.xsl
               src/org/apache/cocoon/environment/http Tag: xml-cocoon2
                        HttpEnvironment.java HttpResponse22.java
               src/org/apache/cocoon/servlet Tag: xml-cocoon2
                        CocoonServlet.java
  Log:
  All redirects should be run through ecodeRedirectURL()
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.8   +2 -2      xml-cocoon/src/org/apache/cocoon/components/language/markup/xsp/Attic/XSPResponseHelper.java
  
  Index: XSPResponseHelper.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/components/language/markup/xsp/Attic/XSPResponseHelper.java,v
  retrieving revision 1.1.2.7
  retrieving revision 1.1.2.8
  diff -u -r1.1.2.7 -r1.1.2.8
  --- XSPResponseHelper.java	2000/12/08 20:39:05	1.1.2.7
  +++ XSPResponseHelper.java	2000/12/18 16:55:14	1.1.2.8
  @@ -24,7 +24,7 @@
    * The XSP <code>HttpResponse</code> object helper
    *
    * @author <a href="mailto:ricardo@apache.org">Ricardo Rocha</a>
  - * @version CVS $Revision: 1.1.2.7 $ $Date: 2000/12/08 20:39:05 $
  + * @version CVS $Revision: 1.1.2.8 $ $Date: 2000/12/18 16:55:14 $
    */
   public class XSPResponseHelper extends XSPObjectHelper {
     /**
  @@ -64,7 +64,7 @@
      */
     public static void sendRedirect(HttpServletResponse response, String location) {
       try {
  -      response.sendRedirect(location);
  +      response.sendRedirect(response.encodeRedirectURL(location));
       }
       catch (IOException e) {LogKit.getLoggerFor("cocoon").warn("XSPResponseHelper.sendRedirect",
e);}
     }
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.11  +2 -1      xml-cocoon/src/org/apache/cocoon/components/language/markup/xsp/java/Attic/xsp.xsl
  
  Index: xsp.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/components/language/markup/xsp/java/Attic/xsp.xsl,v
  retrieving revision 1.1.2.10
  retrieving revision 1.1.2.11
  diff -u -r1.1.2.10 -r1.1.2.11
  --- xsp.xsl	2000/11/13 18:15:56	1.1.2.10
  +++ xsp.xsl	2000/12/18 16:55:17	1.1.2.11
  @@ -11,7 +11,7 @@
   
   <!--
    * @author <a href="mailto:ricardo@apache.org>Ricardo Rocha</a>
  - * @version CVS $Revision: 1.1.2.10 $ $Date: 2000/11/13 18:15:56 $
  + * @version CVS $Revision: 1.1.2.11 $ $Date: 2000/12/18 16:55:17 $
   -->
   
   <!-- XSP Core logicsheet for the Java language -->
  @@ -48,6 +48,7 @@
       import org.apache.cocoon.*;
       import org.apache.cocoon.generation.*;
       import org.apache.cocoon.components.parser.*;
  +    import org.apache.cocoon.util.*;
   
       import org.apache.cocoon.components.language.markup.xsp.XSPGenerator;
       import org.apache.cocoon.components.language.markup.xsp.XSPRequestHelper;
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.17  +1 -1      xml-cocoon/src/org/apache/cocoon/environment/http/Attic/HttpEnvironment.java
  
  Index: HttpEnvironment.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/environment/http/Attic/HttpEnvironment.java,v
  retrieving revision 1.1.2.16
  retrieving revision 1.1.2.17
  diff -u -r1.1.2.16 -r1.1.2.17
  --- HttpEnvironment.java	2000/11/15 19:29:41	1.1.2.16
  +++ HttpEnvironment.java	2000/12/18 16:55:19	1.1.2.17
  @@ -66,7 +66,7 @@
        */
       public void redirect(String newURL) throws IOException {
           String qs = request.getQueryString();
  -        String redirect = newURL;
  +        String redirect = this.response.encodeRedirectURL(newURL);
   
           if (qs != null)
               redirect = redirect + "?" + qs;
  
  
  
  1.1.2.2   +1 -1      xml-cocoon/src/org/apache/cocoon/environment/http/Attic/HttpResponse22.java
  
  Index: HttpResponse22.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/environment/http/Attic/HttpResponse22.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- HttpResponse22.java	2000/12/05 22:01:59	1.1.2.1
  +++ HttpResponse22.java	2000/12/18 16:55:19	1.1.2.2
  @@ -104,7 +104,7 @@
   
       /**
        * @deprecated	As of version 2.1, use
  -     *			encodeRedirectURL(String url) instead
  +     *              encodeRedirectURL(String url) instead
        */
       public String encodeRedirectUrl(String url) {
           return this.res.encodeRedirectUrl(url);
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.4.40  +2 -2      xml-cocoon/src/org/apache/cocoon/servlet/Attic/CocoonServlet.java
  
  Index: CocoonServlet.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/servlet/Attic/CocoonServlet.java,v
  retrieving revision 1.1.4.39
  retrieving revision 1.1.4.40
  diff -u -r1.1.4.39 -r1.1.4.40
  --- CocoonServlet.java	2000/12/18 15:01:15	1.1.4.39
  +++ CocoonServlet.java	2000/12/18 16:55:22	1.1.4.40
  @@ -53,7 +53,7 @@
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
    * @author <a href="mailto:nicolaken@supereva.it">Nicola Ken Barozzi</a> Aisa
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  - * @version CVS $Revision: 1.1.4.39 $ $Date: 2000/12/18 15:01:15 $
  + * @version CVS $Revision: 1.1.4.40 $ $Date: 2000/12/18 16:55:22 $
    */
   
   public class CocoonServlet extends HttpServlet {
  @@ -303,7 +303,7 @@
   
               if (prefix == null) prefix = "";
   
  -            res.sendRedirect(prefix + "/");
  +            res.sendRedirect(res.encodeRedirectURL(prefix + "/"));
               return;
           }
   
  
  
  

Mime
View raw message