httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33171] New: - xbithack not working with text/html types
Date Thu, 20 Jan 2005 00:02:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33171>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33171

           Summary: xbithack not working with text/html types
           Product: Apache httpd-2.0
           Version: 2.0.46
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_include
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: wannajava@cedarcomm.com


I'm running Apache httpd 2.0.46 on RHEL 3, and I couldn't get the xbithack to work no matter

what I did with the configuration. Finally, I discovered that if I didn't name my file with
.html or any 
other known type, then the xbithack worked (i.e. test.junk instead of test.html). So instead
of 
limiting xbithack to only html files, mod_include actually rejects all html files. I went
into 
mod_include.c and changed a line in the include_fixup method:
if (!r->content_type || strcmp(r->content_type, "text/html")) {
to
if (!r->content_type || !strcmp(r->content_type, "text/html")) {
Then I recompiled the module and substituted it for the one RHEL 3 came with, and now it all

works like the documentation says it should. I just downloaded the v. 2.0.52 source code from

Apache and looked at it's mod_include.c code, and it's the same way, although I can't say
from 
experience if it behaves the same or not.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message