View | Details | Raw Unified | Return to bug 41867
Collapse All | Expand All

(-)include/http_core.h (+1 lines)
Lines 619-624 Link Here
619
619
620
    unsigned int allow_encoded_slashes_set : 1;
620
    unsigned int allow_encoded_slashes_set : 1;
621
    unsigned int decode_encoded_slashes_set : 1;
621
    unsigned int decode_encoded_slashes_set : 1;
622
    unsigned int d_is_directory : 1;
622
623
623
    /** Named back references */
624
    /** Named back references */
624
    apr_array_header_t *refs;
625
    apr_array_header_t *refs;
(-)server/core.c (+1 lines)
Lines 2224-2229 Link Here
2224
    conf->r = r;
2224
    conf->r = r;
2225
    conf->d = cmd->path;
2225
    conf->d = cmd->path;
2226
    conf->d_is_fnmatch = (apr_fnmatch_test(conf->d) != 0);
2226
    conf->d_is_fnmatch = (apr_fnmatch_test(conf->d) != 0);
2227
    conf->d_is_directory = 1;
2227
2228
2228
    if (r) {
2229
    if (r) {
2229
        conf->refs = apr_array_make(cmd->pool, 8, sizeof(char *));
2230
        conf->refs = apr_array_make(cmd->pool, 8, sizeof(char *));
(-)server/request.c (+7 lines)
Lines 1216-1221 Link Here
1216
                pmatch = apr_palloc(rxpool, nmatch*sizeof(ap_regmatch_t));
1216
                pmatch = apr_palloc(rxpool, nmatch*sizeof(ap_regmatch_t));
1217
            }
1217
            }
1218
1218
1219
            /* core_dir_config is Directory*, but the requested file is
1220
             * not a directory, so although the regexp could match,
1221
             * we skip it. */
1222
            if (entry_core->d_is_directory && r->finfo.filetype != APR_DIR) {
1223
                continue;
1224
            }
1225
1219
            if (ap_regexec(entry_core->r, r->filename, nmatch, pmatch, 0)) {
1226
            if (ap_regexec(entry_core->r, r->filename, nmatch, pmatch, 0)) {
1220
                continue;
1227
                continue;
1221
            }
1228
            }

Return to bug 41867