httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: [PATCH] Fix relative internal file...
Date Thu, 06 Sep 2001 03:50:13 GMT
I don't understand what you're trying to solve here, and how this solves it.

Cheers,
-g

On Wed, Sep 05, 2001 at 08:15:37PM -0700, Justin Erenkrantz wrote:
> $.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);
>  

-- 
Greg Stein, http://www.lyra.org/

Mime
View raw message