You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Vitalie Vrabie <vv...@moldpac.md> on 1998/12/08 18:45:50 UTC

mod_include/3510: "Content-type:text/x-server-parsed-html" is IGNORED in "#exec cgi=" CGI response.

>Number:         3510
>Category:       mod_include
>Synopsis:       "Content-type:text/x-server-parsed-html" is IGNORED in "#exec cgi=" CGI response.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Dec  8 09:50:01 PST 1998
>Last-Modified:
>Originator:     vv@moldpac.md
>Organization:
apache
>Release:        1.2.4 (and higher, maybe)
>Environment:
os/2 warp 4, fixpak#9
>Description:
according to the documentation, if a #exec cgi returns
"Content-type:text/x-server-parsed-html" in its result, then
THE RESULT should be parsed ALSO.

well, the bad thing it's not. :(
>How-To-Repeat:
create a cgi (let's call it "sample.pl") that gives an output like this:
[-- 8< --]
Content-type:text/x-server-parsed-html

<!--#include virtual="/file2.shtml" -->
[-- 8< --]

let's have a file "1.shtml"
[-- 8< --]
...
<!--#exec cgi="/cgi-bin/sample.pl" -->
...
[-- 8< --]

and a file "/file2.shtml"
[-- 8< --]
...
this is file 2
...
[-- 8< --]

(let's pretend we mean all the html headers instead of "..." above).

when you request "/file1.shtml", you should be given an output that
contains the text "this is file 2". instead, you get something that
contains "<!--#include virtual="/file2.shtml" -->". that is wrong.
>Fix:
have no idea. haven't seen the sources (i'm not as good in c).
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]