1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

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
This commit is contained in:
Bill Stoddard
2001-07-30 16:18:05 +00:00
parent 11f28c3d04
commit a685e2a0e8
2 changed files with 2 additions and 2 deletions

View 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;
}

View 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;
}