httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@apache.org>
Subject Re: cvs commit: apache-1.3/src/modules/standard mod_rewrite.c
Date Thu, 03 Apr 2003 15:08:53 GMT
At 9:11 PM +0000 4/2/03, nd@apache.org wrote:
>  @@ -2067,12 +2098,12 @@
>       splitout_queryargs(r, p->flags & RULEFLAG_QSAPPEND);
>  
>       /*
>  -     *   Again add the previously stripped per-directory location
>  -     *   prefix if the new URI is not a new one for this
>  -     *   location, i.e. if it's not starting with either a slash
>  -     *   or a fully qualified URL scheme.
>  +     *  Add the previously stripped per-directory location
>  +     *  prefix if the new URI is not a new one for this
>  +     *  location, i.e. if it's not an absolute URL (!) path nor
>  +     *  a fully qualified URL scheme.
>        */
>  -    if (prefixstrip && !ap_os_is_path_absolute(r->filename)
>  +    if (prefixstrip && *r->filename != '/'
>  	&& !is_absolute_uri(r->filename)) {
>           rewritelog(r, 3, "[per-dir %s] add per-dir prefix: %s -> %s%s",
>                      perdir, r->filename, perdir, r->filename);
> 
> 
> 

Is that right?? We aren't bothering to check
!ap_os_is_path_absolute(r->filename) anymore?

-- 
===========================================================================
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
      "A society that will trade a little liberty for a little order
             will lose both and deserve neither" - T.Jefferson

Mime
View raw message