in reply to Trailing slash problem with mod_perl
If you don't want to handle directories at all, leave off the latter part of the check: just return DECLINED for anything that is DIR_MAGIC_TYPE.use Apache::Constants qw(:common DIR_MAGIC_TYPE); ... sub handler { my $r = shift; return DECLINED if $r->content_type eq DIR_MAGIC_TYPE and not $r->uri =~ m{/$}; ... }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|