httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: [PATCH] don't crash with per-dir (location) rewrite config and NULL r->filename
Date Fri, 10 Sep 2004 10:24:29 GMT
On Fri, 10 Sep 2004 09:34:14 +0200, jean-frederic clere
<jfrederic.clere@fujitsu-siemens.com> wrote:
> Jeff Trawick wrote:
> > See attached patch.  Given a module with map-to-storage hook which
> > leaves r->filename NULL, and config like the following, you get
> > segfault on platforms that don't like strlen(NULL).
> >
> > <Location /silly/foo>
> > RewriteEngine On
> > RewriteCond %{SERVER_PORT} ^8080$
> > RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI}
> > </Location>
> >
> > /silly is handled by a module which implements a map-to-storage hook
> > and leaves r->filename NULL
> 
> Why not returning DECLINED when r->filename is NULL?

The Location container takes effect even though r->filename is NULL
(there is no file representing the request), so I want the rewriterule
to be able to perform the redirection.

Mime
View raw message