Re: Inconsistency with dhandlers
"Jonathan Swartz" <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
> > I was figuring I'd have to do that, but unfortunately, it doesn't seem
> > to work. Apache redirects the browser to /docs/1.8/, but then returns
> > a 403:
> >
> > [Mon May 10 16:53:53 2004] [error] [client 192.168.1.1] Directory
> > index forbidden by rule: /usr/local/www/bricolage.cc/docs/1.8/
>
> This doesn't work because filepath() never ends in "/". This seems to
> work, though:
>
> % $m->abort(-1) unless $m->dhandler_arg || $r->path_info;
>
Right, I can see that $r->filename would be canonicalized. What about this:
if (-d $r->filename and $r->uri !~ m{/$}) {
$m->abort(-1); # decline
}
I know for a fact that $r->uri will retain the ending /. Seems less
mysterious than the code above.
Jon
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3