Parent Directory
|
Revision Log
|
Patch
--- httpd/httpd/trunk/modules/mappers/mod_alias.c 2006/12/25 12:06:33 490142
+++ httpd/httpd/trunk/modules/mappers/mod_alias.c 2009/05/27 00:58:41 778942
@@ -180,16 +180,21 @@
const char *f = arg2;
const char *url = arg3;
- if (!strcasecmp(arg1, "gone"))
- status = HTTP_GONE;
- else if (!strcasecmp(arg1, "permanent"))
- status = HTTP_MOVED_PERMANENTLY;
- else if (!strcasecmp(arg1, "temp"))
- status = HTTP_MOVED_TEMPORARILY;
- else if (!strcasecmp(arg1, "seeother"))
- status = HTTP_SEE_OTHER;
- else if (apr_isdigit(*arg1))
- status = atoi(arg1);
+ if (arg3 != NULL) {
+ if (!strcasecmp(arg1, "gone"))
+ status = HTTP_GONE;
+ else if (!strcasecmp(arg1, "permanent"))
+ status = HTTP_MOVED_PERMANENTLY;
+ else if (!strcasecmp(arg1, "temp"))
+ status = HTTP_MOVED_TEMPORARILY;
+ else if (!strcasecmp(arg1, "seeother"))
+ status = HTTP_SEE_OTHER;
+ else if (apr_isdigit(*arg1))
+ status = atoi(arg1);
+ else {
+ return "Redirect: invalid first argument (of three)";
+ }
+ }
else {
f = arg1;
url = arg2;
| apache@apache.org | ViewVC Help |
| Powered by ViewVC 1.1.2 |