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:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user