httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jerenkra...@ebuilt.com>
Subject [PATCH] Fix relative internal file...
Date Thu, 06 Sep 2001 03:15:37 GMT
$.10 hack.  Works for me.  

The other solutions would require a rewrite of the logic.  That
is something I don't have time to do and I also bet that OtherBill
has ideas about how to fix this the "right way."  Or not.  =-)
-- justin

Index: server/request.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/request.c,v
retrieving revision 1.48
diff -u -r1.48 request.c
--- server/request.c	2001/09/01 05:21:16	1.48
+++ server/request.c	2001/09/06 03:11:00
@@ -1581,9 +1581,7 @@
      * either, if the base paths match, we can pick up where we leave off.
      */
 
-    if (strncmp(rnew->filename, fdir, fdirlen) == 0
-           && rnew->filename[fdirlen] 
-           && ap_strchr_c(rnew->filename + fdirlen, '/') == NULL) 
+    if (strncmp(rnew->filename, fdir, fdirlen) == 0 && rnew->filename[fdirlen])
     {
         char *udir = ap_make_dirstr_parent(rnew->pool, r->uri);
 


Mime
View raw message