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=39937>. 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=39937 Summary: Garbage output if README.html is gzipped or compressed Product: Apache httpd-1.3 Version: HEAD Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: mod_autoindex AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] This bug is also mentioned in bug #21372. When the file README.html is gzipped or compressed the content of that file is showed after the directory listing. The problem is that the content of the README file is gzipped or compressed and is showed verbatim. It seems that the bug is on the function emit_tail in mod_autoindex.c. The solution consists in examining if the content-encoding header is set and avoiding to show the content of the README file if the content-encoding is either "x-gzip" or "x-compressed" (as stated in http://www.w3.org/Protocols/HTTP/Object_Headers.html#content-encoding) How to reproduce: 1. make a directory accessible through httpd 2. create a dummy README.html file and some other files on the recently created directory 3. browse that directory using $favourite_browser and you will see the content of the directory (except README.html) and at the bottom the content of README.html 4. compress or gzip README.html on that directory 5. browse the same directory and you will see the content of the directory (except README.html) and at the bottom the content of README.html.Z or README.html.gz as binary. $ mkdir -p public_html/readme ; cd public_html/readme $ cat \ "<html><head><title>README.html</title></head><body>README.html</body></html>" \ > README.html $ lynx -dump -nolist http://localhost/~user/readme/ > ~/readmeNotGzipped.html $ gzip README.html $ lynx -dump -nolist http://localhost/~user/readme/ > readmeGzipped.html $ gunzip README.html.gz && compress README.html $ lynx -dump -nolist http://localhost/~user/readme/ > readmeCompressed.html -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
