tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native2/server/apache2 mod_jk2.c
Date Sun, 21 Jul 2002 06:52:30 GMT
bojan       2002/07/20 23:52:30

  Modified:    jk/native2/server/apache2 mod_jk2.c
  Log:
  Be a bit more paranoid about leading slashes in the URI.
  
  Revision  Changes    Path
  1.44      +2 -2      jakarta-tomcat-connectors/jk/native2/server/apache2/mod_jk2.c
  
  Index: mod_jk2.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/server/apache2/mod_jk2.c,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- mod_jk2.c	20 Jul 2002 12:33:58 -0000	1.43
  +++ mod_jk2.c	21 Jul 2002 06:52:29 -0000	1.44
  @@ -720,7 +720,7 @@
           /* } */
   
           /* Absolute paths cannot be merged */
  -        if(r->uri[0] == '/') ++uri_p;
  +        while (*uri_p == '/') ++uri_p;
   
           /* Need absolute path to stat */
           if (apr_filepath_merge(&r->filename, ap_document_root(r), uri_p,
  
  
  

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


Mime
View raw message