]> granicus.if.org Git - apache/commitdiff
Use r->content_type instead of r->handler to screen out non-html
authorBrian Pane <brianp@apache.org>
Sun, 30 Dec 2001 01:24:14 +0000 (01:24 +0000)
committerBrian Pane <brianp@apache.org>
Sun, 30 Dec 2001 01:24:14 +0000 (01:24 +0000)
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

index 045576dcf954810d02660506978811c03d9ef238..361bc3353a00485d15ed7c3b5f81b20792a06516 100644 (file)
@@ -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;
         }
     }