From: Jeff Trawick Date: Fri, 31 May 2002 20:50:14 +0000 (+0000) Subject: if we autoindex, discard the request body and check for any X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9126d856463b1455c43e553ead5d068ac03bd5b1;p=apache 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 --- diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index e7551a5eaa..aa5e143b29 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -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...