httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/modules/filters mod_include.c
Date Sun, 30 Dec 2001 01:24:14 GMT
brianp      01/12/29 17:24:14

  Modified:    modules/filters mod_include.c
  Log:
  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)
  
  Revision  Changes    Path
  1.176     +1 -1      httpd-2.0/modules/filters/mod_include.c
  
  Index: mod_include.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/filters/mod_include.c,v
  retrieving revision 1.175
  retrieving revision 1.176
  diff -u -r1.175 -r1.176
  --- mod_include.c	29 Dec 2001 21:34:04 -0000	1.175
  +++ mod_include.c	30 Dec 2001 01:24:14 -0000	1.176
  @@ -3220,7 +3220,7 @@
               return DECLINED;
           }
   
  -        if (r->handler && strcmp(r->handler, "text/html")) {
  +        if (!r->content_type || strcmp(r->content_type, "text/html")) {
               return DECLINED;
           }
       }
  
  
  

Mime
View raw message