tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http Cookies.java
Date Thu, 26 Aug 2004 19:31:03 GMT
markt       2004/08/26 12:31:03

  Modified:    util/java/org/apache/tomcat/util/http Cookies.java
  Log:
  Fix bug 30870. Remove potential for endless loop in cookie processing.
   - Patch provided by Tony Perkins
  
  Revision  Changes    Path
  1.9       +4 -1      jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/Cookies.java
  
  Index: Cookies.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/Cookies.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Cookies.java	26 Aug 2004 19:06:39 -0000	1.8
  +++ Cookies.java	26 Aug 2004 19:31:03 -0000	1.9
  @@ -158,7 +158,10 @@
               if( pos<0 ) break;
   
               MessageBytes cookieValue=headers.getValue( pos );
  -            if( cookieValue==null || cookieValue.isNull() ) continue;
  +            if( cookieValue==null || cookieValue.isNull() ) {
  +                pos++;
  +                continue;
  +            }
   
               // Uncomment to test the new parsing code
               if( cookieValue.getType() == MessageBytes.T_BYTES ) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message