Commit b91f712f authored by Bill Stoddard's avatar Bill Stoddard
Browse files

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
parent 48b8f813
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }

+1 −1
Original line number Diff line number Diff line
@@ -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;
    }