| 180 |
const char *f = arg2; |
const char *f = arg2; |
| 181 |
const char *url = arg3; |
const char *url = arg3; |
| 182 |
|
|
| 183 |
if (!arg3 && !strcasecmp(arg1, "gone")) { |
if (!arg3 && !strcasecmp(arg1, "gone")) |
| 184 |
status = HTTP_GONE; |
status = HTTP_GONE; |
| 185 |
} |
else if (apr_isdigit(*arg1)) |
| 186 |
|
status = atoi(arg1); |
| 187 |
else if (arg3) { |
else if (arg3) { |
| 188 |
if (!strcasecmp(arg1, "permanent")) |
if (!strcasecmp(arg1, "permanent")) |
| 189 |
status = HTTP_MOVED_PERMANENTLY; |
status = HTTP_MOVED_PERMANENTLY; |
| 191 |
status = HTTP_MOVED_TEMPORARILY; |
status = HTTP_MOVED_TEMPORARILY; |
| 192 |
else if (!strcasecmp(arg1, "seeother")) |
else if (!strcasecmp(arg1, "seeother")) |
| 193 |
status = HTTP_SEE_OTHER; |
status = HTTP_SEE_OTHER; |
|
else if (apr_isdigit(*arg1)) |
|
|
status = atoi(arg1); |
|
| 194 |
else { |
else { |
| 195 |
return "Redirect: invalid first argument (of three)"; |
return "Redirect: invalid first argument (of three)"; |
| 196 |
} |
} |