httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roy Fielding <field...@beach.w3.org>
Subject Apache 0.8.11 does not allow includes when it should
Date Thu, 24 Aug 1995 20:24:27 GMT
I encounterd a bug opposite what David mentioned.
Apache is denying includes of text files when IncludesNoExec
is set.  Here is the simple fix (so simple, it took me a while
to recognize it).

....Roy
=========================================================
*** mod_include.c.dist  Tue Aug 22 18:16:23 1995
--- mod_include.c       Thu Aug 24 13:15:15 1995
***************
*** 377,383 ****
                error_fmt = "unable to include %s in parsed file %s";
  
            if (!error_fmt && noexec && rr->content_type
!               && (!strncmp (rr->content_type, "text/", 5)))
                error_fmt =
                  "unable to include potential exec %s in parsed file %s";
            
--- 377,383 ----
                error_fmt = "unable to include %s in parsed file %s";
  
            if (!error_fmt && noexec && rr->content_type
!               && (strncmp(rr->content_type, "text/", 5) != 0))
                error_fmt =
                  "unable to include potential exec %s in parsed file %s";
            


Mime
View raw message