]> granicus.if.org Git - apache/commitdiff
Be a bit more explicit. If the filetype is not an APR_REG, the fail the request.
authorBill Stoddard <stoddard@apache.org>
Mon, 30 Jul 2001 16:18:05 +0000 (16:18 +0000)
committerBill Stoddard <stoddard@apache.org>
Mon, 30 Jul 2001 16:18:05 +0000 (16:18 +0000)
This relys on directory_walk having already resolved symboloc links.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89789 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_cgi.c
modules/generators/mod_cgid.c

index b76747308d9b2349a767cd2f39f48fa779a6f213..91c977ba05ad590abfc8c6bd07672d2c02d97fb2 100644 (file)
@@ -815,7 +815,7 @@ static int include_cgi(char *s, request_rec *r, ap_filter_t *next,
     if ((rr->path_info && rr->path_info[0]) || rr->args) {
         return -1;
     }
-    if (rr->finfo.filetype == 0) {
+    if (rr->finfo.filetype != APR_REG) {
         return -1;
     }
 
index b991e42afe51b2fdb23dccd18da10ec5d2f669d4..6d6a8646f7e6d2b9c1897e2878b88dcc377af4f5 100644 (file)
@@ -1060,7 +1060,7 @@ static int include_cgi(char *s, request_rec *r, ap_filter_t *next,
     if ((rr->path_info && rr->path_info[0]) || rr->args) {
         return -1;
     }
-    if (rr->finfo.filetype == 0) {
+    if (rr->finfo.filetype != APR_REG) {
         return -1;
     }