Commit 9126d856 authored by Jeff Trawick's avatar Jeff Trawick
Browse files

if we autoindex, discard the request body and check for any

errors doing so


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95453 13f79535-47bb-0310-9956-ffa450edef68
parent 72474d28
Loading
Loading
Loading
Loading
+6 −0
Changes for modules/generators/mod_autoindex.c: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -2133,6 +2133,12 @@ static int handle_autoindex(request_rec *r)
    /* OK, nothing easy.  Trot out the heavy artillery... */

    if (allow_opts & OPT_INDEXES) {
        int errstatus;

        if ((errstatus = ap_discard_request_body(r)) != OK) {
            return errstatus;
        }

        /* KLUDGE --- make the sub_req lookups happen in the right directory.
         * Fixing this in the sub_req_lookup functions themselves is difficult,
         * and would probably break virtual includes...