Synopsis: SSI: include virtual doesn't handle SCRIPT_NAME correctly.

State-Changed-From-To: open-analyzed
State-Changed-By: marc
State-Changed-When: Tue Sep 30 21:38:19 PDT 1997
State-Changed-Why:
This has been tracked to a problem leftover from the horrible
semantics of exec cgi.

This code:

    if (!strcmp(r->protocol, "INCLUDED")) {
        table_set(e, "SCRIPT_NAME", r->uri);
        if (r->path_info && *r->path_info)
            table_set(e, "PATH_INFO", r->path_info);

in util_script.c is valid for exec cgi because exec cgi
is odd, but not for include virtual.  Unfortunately, at that
point we have no way to tell the two apart.  The fix (ie.
don't run the above special case for include virtual) is obvious
but the way to do it in the poorly abstracted CGI and SSI implementation
isn't.

Reply via email to