Re: Inconsistency with dhandlers
"Jonathan Swartz" <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
> No, I mean that if a request comes in for /docs/1.8/, then
> /docs/1.8/dhandler can respond. If it comes in for /docs/1.8 (note the
> omitted final slash), then /docs/1.8/dhandler will not respond.
Ok, that makes sense for the default behavior of decline_dirs=>0. As you
say, it is backwards incompatible. So I'll schedule it for 1.3.
In the meantime, you should be able to put this in your dhandler or in a
site-wide autohandler:
if (-d $r->filename and $r->filename !~ m{/$}) {
$m->abort(-1); # decline
}
At least, I think that should work. :) Let me know.
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