From a4f324bddeb0c2a78b16983136fffcaeed182f6a Mon Sep 17 00:00:00 2001 From: Brian Pane Date: Sun, 30 Dec 2001 01:24:14 +0000 Subject: [PATCH] Use r->content_type instead of r->handler to screen out non-html requests when doing the xbithack check (thanks to wrowe for the suggestion) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92654 13f79535-47bb-0310-9956-ffa450edef68 --- modules/filters/mod_include.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 045576dcf9..361bc3353a 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -3220,7 +3220,7 @@ static int include_fixup(request_rec *r) return DECLINED; } - if (r->handler && strcmp(r->handler, "text/html")) { + if (!r->content_type || strcmp(r->content_type, "text/html")) { return DECLINED; } } -- 2.50.1