Hi there,

On Wed, 2 Feb 2000, Paul J. Lucas wrote:

>       I have code that contains the line:
>               $r->lookup_uri( $r->param( 'pm_uri' ) )->filename;
>[snip] 
>       However, if I have an access restriction that forbids access to
>       files ending in a .pm extension and the URI maps to such a
>       filename, then I get a "client denied by server confiruation"
>       message in the error log.

Are you checking the status of the subrequest?  (Eagle book, p453).

my $subr = $r->lookup_uri( inaccessible_file );
my $status = $subr->status;
unless( $status == HTTP_OK ) { dont_access_the_file(); }

73,
Ged.

Reply via email to