httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy mod_proxy.c
Date Wed, 18 Aug 2004 16:46:12 GMT
jfclere     2004/08/18 09:46:12

  Modified:    modules/proxy mod_proxy.c
  Log:
  Prevent / beeing accepted wrongly by the proxy when having for example:
  <Location /examples/>
     ProxyPass ajp://localhost:8009/examples/
  </Location>
  
  Revision  Changes    Path
  1.131     +7 -0      httpd-2.0/modules/proxy/mod_proxy.c
  
  Index: mod_proxy.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/mod_proxy.c,v
  retrieving revision 1.130
  retrieving revision 1.131
  diff -u -r1.130 -r1.131
  --- mod_proxy.c	13 Aug 2004 12:09:13 -0000	1.130
  +++ mod_proxy.c	18 Aug 2004 16:46:12 -0000	1.131
  @@ -257,6 +257,13 @@
           urip = end_uri;
       }
   
  +   /* We reach the end of the uri before the end of "alias_fakename"
  +    * for example uri is "/" and alias_fakename "/examples"
  +    */
  +   if (urip == end_uri && aliasp!=end_fakename) {
  +       return 0;
  +   }
  +
       /* Check last alias path component matched all the way */
       if (aliasp[-1] != '/' && *urip != '\0' && *urip != '/')
           return 0;
  
  
  

Mime
View raw message