From: Bill Stoddard Date: Mon, 30 Jul 2001 16:18:05 +0000 (+0000) Subject: Be a bit more explicit. If the filetype is not an APR_REG, the fail the request. X-Git-Tag: 2.0.23~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a685e2a0e8d03fc679431ce99defb7cec2d1eb9c;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index b76747308d9..91c977ba05a 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 b991e42afe5..6d6a8646f7e 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; }