httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <>
Subject RE: Dynamicly insert 'require' into request
Date Wed, 22 Jul 2009 11:24:24 GMT
On Wed, 2009-07-22 at 10:43 +0100, Ben Davies wrote:
> Okay, so upon further inspection, it appears that there may not be an
> equivalent function for mod_perls set_handlers().
> This leads me to a problem: how do I "turn off" a hook, especially, as the
> check_user() hook expects the r->user property to contain the username,
> meaning that the sending of a 403 happens before the check_user() hook is
> called. Whatever it is I need to do, I need to do in the access() hook.
> I was hoping it might be something as simple as removing my require entry
> from the require array. Has anyone had any experience with this? If so,
> could you comment on techniques?
> Cheers,
> Ben

One solution would be to set a note for your hook in an earlier stage,
and then return DECLINED from your handler when you detect that note.

There may be a better way :)



View raw message