Both should return OK under normal circumstances - unless you want to short 
circuit another_test, in which case, 'a_test' should return DONE.

http://perl.apache.org/docs/2.0/user/handlers/intro.html#Handler_Return_Values
 
  - Praveen  

----- Original Message ----
From: Martijn <[EMAIL PROTECTED]>
To: modperl@perl.apache.org
Sent: Tuesday, November 13, 2007 11:42:46 AM
Subject: multiple requires: AND or OR ?

Hello.

A simple question, of which I can't find the answer fast enough.

I have the following block inside httpd.conf:

<Location /archive>
  require a_test
  require another_test
</Location>

where a_test and another_test are two mod_perl handlers that either
return OK or FORBIDDEN.

For a user to get access to the /archive-location, should both
handlers return OK (logical AND) or is it enough if one does (logical
OR)?

I always assumed it was logical AND and that makes sense to me in at
least ten different ways, but I'd rather be 100% sure, before I
accidentally open up half of our site...

Thanks.

Martijn.



Reply via email to