You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Roy Fielding <fi...@beach.w3.org> on 1995/08/24 22:24:27 UTC

Apache 0.8.11 does not allow includes when it should

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";