You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2001/07/04 11:07:04 UTC

cvs commit: xml-cocoon2/src/org/apache/cocoon/environment/http HttpResponse.java

cziegeler    01/07/04 02:07:03

  Modified:    src/org/apache/cocoon/environment/http Tag: cocoon_20_branch
                        HttpResponse.java
  Log:
  Encode url only once - this is not tested by every servlet engine
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.1.1.2.1 +4 -0      xml-cocoon2/src/org/apache/cocoon/environment/http/HttpResponse.java
  
  Index: HttpResponse.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/environment/http/HttpResponse.java,v
  retrieving revision 1.1.1.1
  retrieving revision 1.1.1.1.2.1
  diff -u -r1.1.1.1 -r1.1.1.1.2.1
  --- HttpResponse.java	2001/05/09 20:49:45	1.1.1.1
  +++ HttpResponse.java	2001/07/04 09:06:56	1.1.1.1.2.1
  @@ -65,10 +65,14 @@
       }
   
       public String encodeURL(String url) {
  +        if (url != null && url.indexOf(";jsessionid=") != -1)
  +            return url;
           return this.res.encodeURL(url);
       }
   
       public String encodeRedirectURL(String url) {
  +        if (url != null && url.indexOf(";jsessionid=") != -1)
  +            return url;
           return this.res.encodeRedirectURL(url);
       }
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org