From 9126d856463b1455c43e553ead5d068ac03bd5b1 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Fri, 31 May 2002 20:50:14 +0000 Subject: [PATCH] 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 --- modules/generators/mod_autoindex.c | 6 ++++++ 1 file changed, 6 insertions(+) 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... -- 2.40.0