On Tue, 2003-10-14 at 13:39, Brian Akins wrote:
> > > I figure out if I send a "/" in the Host header this will be triggered. 
> > > It seems to be in mod_include  can anyone else reproduce this?
> > 
> > Someone else confirmed on a couple of installs.  This seems to only
> > happen when AddOutputFilterByType INCLUDES text/html ... is used.


Quick fix:

Change 

if (!(ap_allow_options(r)) {

to 

if (!(ap_allow_options(r) & OPT_INCLUDES) || (r->status ==
HTTP_BAD_REQUEST)) {

in includes_filter

See attached diff.


-- 
Brian Akins <[EMAIL PROTECTED]>
CNN Internet Technologies
--- mod_include.c.orig  Tue Oct 14 13:54:43 2003
+++ mod_include.c       Tue Oct 14 13:44:23 2003
@@ -3353,7 +3353,7 @@
     include_server_config *sconf= ap_get_module_config(r->server->module_config,
                                                               &include_module);
 
-    if (!(ap_allow_options(r) & OPT_INCLUDES)) {
+    if (!(ap_allow_options(r) & OPT_INCLUDES) || (r->status == HTTP_BAD_REQUEST)) {
         return ap_pass_brigade(f->next, b);
     }
 

Reply via email to