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/native/apache-2.0 mod_jk.c
Date Sun, 21 Jul 2002 06:50:02 GMT
bojan       2002/07/20 23:50:02

  Modified:    jk/native/apache-2.0 mod_jk.c
  Log:
  Be a bit more paranoid about leading slashes in the URI.
  
  Revision  Changes    Path
  1.49      +2 -2      jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c
  
  Index: mod_jk.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- mod_jk.c	20 Jul 2002 12:17:10 -0000	1.48
  +++ mod_jk.c	21 Jul 2002 06:50:02 -0000	1.49
  @@ -1624,7 +1624,7 @@
               r->filename = (char *)apr_filename_of_pathname(r->uri); */
   
           /* 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