tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector HttpResponseBase.java
Date Tue, 21 Nov 2000 00:00:40 GMT
craigmcc    00/11/20 16:00:40

  Modified:    catalina/src/share/org/apache/catalina/connector
                        HttpResponseBase.java
  Log:
  Intra-document references (those that start with "#") never need to be
  encoded.
  
  Revision  Changes    Path
  1.17      +8 -4      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java
  
  Index: HttpResponseBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- HttpResponseBase.java	2000/11/08 19:30:14	1.16
  +++ HttpResponseBase.java	2000/11/21 00:00:39	1.17
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v
1.16 2000/11/08 19:30:14 craigmcc Exp $
  - * $Revision: 1.16 $
  - * $Date: 2000/11/08 19:30:14 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v
1.17 2000/11/21 00:00:39 craigmcc Exp $
  + * $Revision: 1.17 $
  + * $Date: 2000/11/21 00:00:39 $
    *
    * ====================================================================
    *
  @@ -96,7 +96,7 @@
    * methods need to be implemented.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.16 $ $Date: 2000/11/08 19:30:14 $
  + * @version $Revision: 1.17 $ $Date: 2000/11/21 00:00:39 $
    */
   
   public class HttpResponseBase
  @@ -400,6 +400,10 @@
        * @param location Absolute URL to be validated
        **/
       private boolean isEncodeable(String location) {
  +
  +        // Is this an intra-document reference?
  +        if (location.startsWith("#"))
  +            return (false);
   
   	// Are we in a valid session that is not using cookies?
   	HttpServletRequest hreq = (HttpServletRequest) request.getRequest();
  
  
  

Mime
View raw message