| 40 |
const char *real; |
const char *real; |
| 41 |
const char *fake; |
const char *fake; |
| 42 |
char *handler; |
char *handler; |
| 43 |
regex_t *regexp; |
ap_regex_t *regexp; |
| 44 |
int redir_status; /* 301, 302, 303, 410, etc */ |
int redir_status; /* 301, 302, 303, 410, etc */ |
| 45 |
} alias_entry; |
} alias_entry; |
| 46 |
|
|
| 112 |
/* XX r can NOT be relative to DocumentRoot here... compat bug. */ |
/* XX r can NOT be relative to DocumentRoot here... compat bug. */ |
| 113 |
|
|
| 114 |
if (use_regex) { |
if (use_regex) { |
| 115 |
new->regexp = ap_pregcomp(cmd->pool, f, REG_EXTENDED); |
new->regexp = ap_pregcomp(cmd->pool, f, AP_REG_EXTENDED); |
| 116 |
if (new->regexp == NULL) |
if (new->regexp == NULL) |
| 117 |
return "Regular expression could not be compiled."; |
return "Regular expression could not be compiled."; |
| 118 |
new->real = r; |
new->real = r; |
| 176 |
alias_server_conf *serverconf = ap_get_module_config(s->module_config, |
alias_server_conf *serverconf = ap_get_module_config(s->module_config, |
| 177 |
&alias_module); |
&alias_module); |
| 178 |
int status = (int) (long) cmd->info; |
int status = (int) (long) cmd->info; |
| 179 |
regex_t *r = NULL; |
ap_regex_t *r = NULL; |
| 180 |
const char *f = arg2; |
const char *f = arg2; |
| 181 |
const char *url = arg3; |
const char *url = arg3; |
| 182 |
|
|
| 196 |
} |
} |
| 197 |
|
|
| 198 |
if (use_regex) { |
if (use_regex) { |
| 199 |
r = ap_pregcomp(cmd->pool, f, REG_EXTENDED); |
r = ap_pregcomp(cmd->pool, f, AP_REG_EXTENDED); |
| 200 |
if (r == NULL) |
if (r == NULL) |
| 201 |
return "Regular expression could not be compiled."; |
return "Regular expression could not be compiled."; |
| 202 |
} |
} |
| 314 |
int doesc, int *status) |
int doesc, int *status) |
| 315 |
{ |
{ |
| 316 |
alias_entry *entries = (alias_entry *) aliases->elts; |
alias_entry *entries = (alias_entry *) aliases->elts; |
| 317 |
regmatch_t regm[AP_MAX_REG_MATCH]; |
ap_regmatch_t regm[AP_MAX_REG_MATCH]; |
| 318 |
char *found = NULL; |
char *found = NULL; |
| 319 |
int i; |
int i; |
| 320 |
|
|