]> granicus.if.org Git - apache/commitdiff
if we autoindex, discard the request body and check for any
authorJeff Trawick <trawick@apache.org>
Fri, 31 May 2002 20:50:14 +0000 (20:50 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 31 May 2002 20:50:14 +0000 (20:50 +0000)
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

index e7551a5eaa462838949dc4626e852202e060cf38..aa5e143b29610fb565c1eb302fd5e97e7d4ee2e2 100644 (file)
@@ -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...