You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/04/26 13:30:34 UTC

DO NOT REPLY [Bug 34622] New: - comment of CGI scripts can deactivate mod_include

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=34622>.
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=34622

           Summary: comment of CGI scripts can deactivate mod_include
           Product: Apache httpd-2.0
           Version: 2.0.53
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_include
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mzaki@e-mail.ne.jp


CGI script can output SSI directives in Apache 2.0.x servers.
Under 'XBitHack on' and the file mode of the script is 0745,
the CGI output should be parsed with mod_include and modified
according to the SSI directives.

But I found, in some cases, the SSI directives were ommited.
It seems this issue depends on the content of CGI script files,
and not on the output of CGI script.

HOW TO REPEAT:

A sample script reproducing the issue is below.

-------------------------------------: test.cgi (mode 0745)
#!/bin/sh
# the comment !!!
cat <<_HTML_
Content-Type: text/html

<html>
<head>
<title>SSI test</title>
</head>
<body>
DATE_LOCAL: <!--#echo var="DATE_LOCAL" -->
</body>
</html>
_HTML_
------------------------------------------------------------

The SSI directive is expected to be replaced with the time,
but is omitted.

This is not caused by mis-configuration,
since I can see the expected replacemant
when the comment string ('the comment') is modified to 'tee comment'.
This single byte modification ('tee' <-> 'the') is responsible for this issue.
Please note that the output of the CGI script is not changed, 
and only the script comment is modified.

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