diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-06-16 17:25:57 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-08-27 02:16:53 -0400 |
commit | 38a9f0ebdd581bb53dcda8c4e71dffa45b8d898b (patch) | |
tree | 8638235c8260da83355c27682d840b6fdd150436 /src/mod_access.c | |
parent | 2d9bf8062dc1984b15dd67b34af6d7a8621db63a (diff) | |
download | lighttpd-git-38a9f0ebdd581bb53dcda8c4e71dffa45b8d898b.tar.gz |
[mod_access] remove excess trace
trace is still issued if access is denied
and r->log_request_handling is set
Diffstat (limited to 'src/mod_access.c')
-rw-r--r-- | src/mod_access.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/mod_access.c b/src/mod_access.c index 327215f6..5b722bfa 100644 --- a/src/mod_access.c +++ b/src/mod_access.c @@ -118,9 +118,7 @@ static int mod_access_check (const array * const allow, const array * const deny } /** - * URI handler - * - * we will get called twice: + * handler is called twice: * - after the clean up of the URL and * - after the pathinfo checks are done * @@ -128,17 +126,9 @@ static int mod_access_check (const array * const allow, const array * const deny */ URIHANDLER_FUNC(mod_access_uri_handler) { plugin_data *p = p_d; - mod_access_patch_config(r, p); - - if (NULL == p->conf.access_allow && NULL == p->conf.access_deny) { + if (NULL == p->conf.access_allow && NULL == p->conf.access_deny) return HANDLER_GO_ON; /* access allowed; nothing to match */ - } - - if (r->conf.log_request_handling) { - log_error(r->conf.errh, __FILE__, __LINE__, - "-- mod_access_uri_handler called"); - } return mod_access_check(p->conf.access_allow, p->conf.access_deny, &r->uri.path, r->conf.force_lowercase_filenames) |