From a685e2a0e8d03fc679431ce99defb7cec2d1eb9c Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Mon, 30 Jul 2001 16:18:05 +0000 Subject: [PATCH] Be a bit more explicit. If the filetype is not an APR_REG, the fail the request. 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 | 2 +- modules/generators/mod_cgid.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index b76747308d..91c977ba05 100644 --- a/modules/generators/mod_cgi.c +++ b/modules/generators/mod_cgi.c @@ -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; } diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index b991e42afe..6d6a8646f7 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -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; } -- 2.50.1