]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
OR_ALL is not a good choice. Use more restrictive permissions for the
authorAndré Malo <nd@apache.org>
Fri, 15 Oct 2004 23:38:54 +0000 (23:38 +0000)
committerAndré Malo <nd@apache.org>
Fri, 15 Oct 2004 23:38:54 +0000 (23:38 +0000)
mod_filter directives.

OR_OPTIONS for all but FilterTrace, which isn't allowed in htaccess,
because it could DoS the server (see docs).

We should consider to introduce an allowoverride filters or so.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105477 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_filter.c

index 1014cbbd29a63b9d9fa5bf9774ed7da74a750365..ebc22c713ffde217574cf8d998ebe200daeb0cb1 100644 (file)
@@ -720,16 +720,17 @@ static void *filter_merge(apr_pool_t *pool, void *BASE, void *ADD)
 }
 
 static const command_rec filter_cmds[] = {
-    AP_INIT_TAKE23("FilterDeclare", filter_declare, NULL, OR_ALL,
-        "filter-name, dispatch-criterion [, filter-type]") ,
-    AP_INIT_TAKE3("FilterProvider", filter_provider, NULL, OR_ALL,
-        "filter-name, provider-name, dispatch-match") ,
-    AP_INIT_ITERATE("FilterChain", filter_chain, NULL, OR_ALL,
-        "list of filter names with optional [+-=!@]") ,
-    AP_INIT_TAKE2("FilterTrace", filter_debug, NULL, OR_ALL, "Debug level") ,
+    AP_INIT_TAKE23("FilterDeclare", filter_declare, NULL, OR_OPTIONS,
+        "filter-name, dispatch-criterion [, filter-type]"),
+    AP_INIT_TAKE3("FilterProvider", filter_provider, NULL, OR_OPTIONS,
+        "filter-name, provider-name, dispatch-match"),
+    AP_INIT_ITERATE("FilterChain", filter_chain, NULL, OR_OPTIONS,
+        "list of filter names with optional [+-=!@]"),
+    AP_INIT_TAKE2("FilterTrace", filter_debug, NULL, RSRC_CONF | ACCESS_CONF,
+        "Debug level"),
 #ifndef NO_PROTOCOL
-    AP_INIT_TAKE23("FilterProtocol", filter_protocol, NULL, OR_ALL,
-        "filter-name [provider-name] protocol-args") ,
+    AP_INIT_TAKE23("FilterProtocol", filter_protocol, NULL, OR_OPTIONS,
+        "filter-name [provider-name] protocol-args"),
 #endif
     { NULL }
 };