/* It has to be on disk for this to work */
if (!strcasecmp(pathinfo_type, "full")) {
rconf->need_dirwalk = 1;
- ap_unescape_url_keep2f(path, 0);
}
else if (!strcasecmp(pathinfo_type, "first-dot")) {
char *split = ap_strchr(path, '.');
fcgi_req_config_t *rconf = ap_get_module_config(r->request_config, &proxy_fcgi_module);
fcgi_dirconf_t *dconf = ap_get_module_config(r->per_dir_config, &proxy_fcgi_module);
- if (rconf) {
- if (rconf->need_dirwalk) {
- ap_directory_walk(r);
- }
+ if (rconf && rconf->need_dirwalk) {
+ char *saved_filename = r->filename;
+ r->filename = r->uri;
+ ap_directory_walk(r);
+ r->filename = saved_filename;
}
/* Strip proxy: prefixes */