const char *endp = ap_strrchr_c(arg, '>');
int old_overrides = cmd->override;
char *old_path = cmd->path;
+ ap_regex_t *old_regex = cmd->regex;
core_dir_config *conf;
ap_conf_vector_t *new_dir_conf = ap_create_per_dir_config(cmd->pool);
const command_rec *thiscmd = cmd->cmd;
int run_mode = ap_state_query(AP_SQ_RUN_MODE);
char *newpath;
+ cmd->regex = NULL;
+
/*
* Ensure that the pathname is canonical, and append the trailing /
*/
cmd->path = old_path;
cmd->override = old_overrides;
+ cmd->regex = old_regex;
return NULL;
}
const char *endp = ap_strrchr_c(arg, '>');
int old_overrides = cmd->override;
char *old_path = cmd->path;
+ ap_regex_t *old_regex = cmd->regex;
core_dir_config *conf;
const command_rec *thiscmd = cmd->cmd;
ap_conf_vector_t *new_url_conf = ap_create_per_dir_config(cmd->pool);
return "Regex could not be compiled";
}
}
+ else {
+ cmd->regex = NULL;
+ }
/* initialize our config and fetch it */
conf = ap_set_config_vectors(cmd->server, new_url_conf, cmd->path,
cmd->path = old_path;
cmd->override = old_overrides;
+ cmd->regex = old_regex;
return NULL;
}
const char *endp = ap_strrchr_c(arg, '>');
int old_overrides = cmd->override;
char *old_path = cmd->path;
+ ap_regex_t *old_regex = cmd->regex;
core_dir_config *conf;
const command_rec *thiscmd = cmd->cmd;
ap_conf_vector_t *new_file_conf = ap_create_per_dir_config(cmd->pool);
}
else {
char *newpath;
+
+ cmd->regex = NULL;
+
/* Ensure that the pathname is canonical, but we
* can't test the case/aliases without a fixed path */
if (apr_filepath_merge(&newpath, "", cmd->path,
cmd->path = old_path;
cmd->override = old_overrides;
+ cmd->regex = old_regex;
return NULL;
}