diff options
author | Stefan Fritsch <sf@apache.org> | 2011-08-04 00:10:27 +0200 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2011-08-04 00:10:27 +0200 |
commit | 9bd21d2c8aa0c848cd8f0ec52db087811dac6968 (patch) | |
tree | 0de2e75495dff3d65138cf6f94ba8cb68f10ef39 /server/core.c | |
parent | cleanups related to new AllowOverrideList functionality: (diff) | |
download | apache2-9bd21d2c8aa0c848cd8f0ec52db087811dac6968.tar.xz apache2-9bd21d2c8aa0c848cd8f0ec52db087811dac6968.zip |
Forbid some directives in .htaccess because of AllowOverrideList:
core: AllowOverride, AllowOverrideList
mod_authn_dbd: AuthDBDUserPWQuery, AuthDBDUserRealmQuery
mod_authz_dbd: AuthzDBDQuery, AuthzDBDRedirectQuery
mod_proxy: BalancerMember, ProxySet
Adjust for use in .htaccess:
mod_actions: Script
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1153687 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/core.c')
-rw-r--r-- | server/core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/core.c b/server/core.c index d11bbe6065..14b401b587 100644 --- a/server/core.c +++ b/server/core.c @@ -1570,6 +1570,7 @@ static const char *set_override(cmd_parms *cmd, void *d_, const char *l) core_dir_config *d = d_; char *w; char *k, *v; + const char *err; /* Throw a warning if we're in <Location> or <Files> */ if (ap_check_cmd_context(cmd, NOT_IN_LOCATION | NOT_IN_FILES)) { @@ -1577,6 +1578,8 @@ static const char *set_override(cmd_parms *cmd, void *d_, const char *l) "Useless use of AllowOverride in line %d of %s.", cmd->directive->line_num, cmd->directive->filename); } + if ((err = ap_check_cmd_context(cmd, NOT_IN_HTACCESS)) != NULL) + return err; d->override = OR_NONE; while (l[0]) { @@ -1627,6 +1630,7 @@ static const char *set_override_list(cmd_parms *cmd, void *d_, int argc, char *c { core_dir_config *d = d_; int i; + const char *err; /* Throw a warning if we're in <Location> or <Files> */ if (ap_check_cmd_context(cmd, NOT_IN_LOCATION | NOT_IN_FILES)) { @@ -1634,6 +1638,8 @@ static const char *set_override_list(cmd_parms *cmd, void *d_, int argc, char *c "Useless use of AllowOverrideList in line %d of %s.", cmd->directive->line_num, cmd->directive->filename); } + if ((err = ap_check_cmd_context(cmd, NOT_IN_HTACCESS)) != NULL) + return err; d->override_list = apr_table_make(cmd->pool, 1); |