AddOutputFilter weirdness in 4.0.2a and patch

Elliot Kendall <[email protected]> Mon, 26 Jul 2004 12:49:51 -0400
Newsgroups gmane.comp.apache.mod-layout
Message-ID <20040726164951.GC2691@kramer>
I was unable to get server-side includes working properly with
mod_layout. My config looked something like this:

AddOutputFilter LAYOUT;INCLUDES shtml html htm

The includes would work, but only sort of. I'd basically end up with
two copies of the page concatenated together, with only the second
one getting the includes. The fix is trivial, though: mod_layout
was reporting itself as the wrong kind of filter type. I suspect
this patch will fix some problems with PHP as well.

Elliot Kendall
modlayoutfiltertype.patch (text/plain, 433 B)
--- mod_layout-4.0.2a/mod_layout.c	2004-07-26 12:36:52.000000000 -0400
+++ mod_layout-4.0.2a/mod_layout.c.new	2004-07-26 12:38:10.000000000 -0400
@@ -540,7 +540,7 @@
 }
 
 static void layout_register_hooks(apr_pool_t *p) {
-	ap_register_output_filter("LAYOUT", layout_filter, NULL, AP_FTYPE_CONTENT_SET);
+	ap_register_output_filter("LAYOUT", layout_filter, NULL, AP_FTYPE_RESOURCE);
 }
 
 static const command_rec layout_cmds[] = {