Commit ae1d030c authored by Nick Kew's avatar Nick Kew
Browse files

PR#39710 - badly broken errordocuments for CGI

We've just had another duplicate report of this on bugzilla.
We've got a simple patch, and people asking WTF is going on
with inaction.  Noone seems clear on why the patch shouldn't
be applied (http://marc.info/?l=apache-httpd-dev&m=117760311129386&w=2).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@541926 13f79535-47bb-0310-9956-ffa450edef68
parent b3cd6364
Loading
Loading
Loading
Loading
+1 −12
Original line number Original line Diff line number Diff line
@@ -929,18 +929,7 @@ static int cgi_handler(request_rec *r)
        int ret;
        int ret;


        if ((ret = ap_scan_script_header_err_brigade(r, bb, sbuf))) {
        if ((ret = ap_scan_script_header_err_brigade(r, bb, sbuf))) {
            ret = log_script(r, conf, ret, dbuf, sbuf, bb, script_err);
            return log_script(r, conf, ret, dbuf, sbuf, bb, script_err);

            /* Set our status. */
            r->status = ret;

            /* Pass EOS bucket down the filter chain. */
            apr_brigade_cleanup(bb);
            b = apr_bucket_eos_create(c->bucket_alloc);
            APR_BRIGADE_INSERT_TAIL(bb, b);
            ap_pass_brigade(r->output_filters, bb);

            return ret;
        }
        }


        location = apr_table_get(r->headers_out, "Location");
        location = apr_table_get(r->headers_out, "Location");