On Sat, Jun 23, 2001 at 11:10:07PM -0400, Brooklyn Linux Solutions CEO wrote:
> 
> I've been working on a mod_perl implimentation which 
> does the following.

...

> I have something like this running on the top directory:
> 
> 
> sub handler{
>       my $r = shift;
>       return DECLINED if ($r->uri() =~ /top/home.html);
>       return DECLINED if ($r->uri() =~ /top/login.html);
>       return DECLINED if ($r->uri() =~ /top/lower_dir1);
>       return DECLINED if ($r->uri() =~ /top/lower_dir2);
>       return DECLINED if (!$r->content_type('text/html));
>       return DECLINED if ($r->content_type('images/gif));

i bet you mistyped some of that...

        val =~ /pattern/flags

maybe something more like:

        return DECLINED
           if ($r->uri() =~ m{/top/((home|login).html|lower_dir[12])});

> It's doing an internal redirect when they are autorized for on of the
> lower directories, but the graphics are still now getting through
> to the top if I remove the DECLINED content_type 'text/html'.  But when
> I leave it in, they seem to have access to the directory access.

hmm -- "! text/html" should make "images/gif" redundant, i'd
think. anybody got a pointer, here?

-- 
I figure: if a man's gonna gamble, may as well do it
without plowing.   -- Bama Dillert, "Some Came Running"

[EMAIL PROTECTED]
http://sourceforge.net/projects/newbiedoc -- we need your brain!
http://www.dontUthink.com/ -- your brain needs us!

Reply via email to