From: Brian Pane Date: Sun, 30 Dec 2001 01:24:14 +0000 (+0000) Subject: Use r->content_type instead of r->handler to screen out non-html X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fc54ab0ecc9650e458bd7c1c613c5d9f2b52d10;p=apache 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 --- 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; } }