Parent Directory
|
Revision Log
|
Patch
--- httpd/httpd/trunk/modules/mappers/mod_alias.c 2009/05/27 00:58:41 778942
+++ httpd/httpd/trunk/modules/mappers/mod_alias.c 2009/06/01 13:37:59 780648
@@ -180,10 +180,11 @@
const char *f = arg2;
const char *url = arg3;
- if (arg3 != NULL) {
- if (!strcasecmp(arg1, "gone"))
- status = HTTP_GONE;
- else if (!strcasecmp(arg1, "permanent"))
+ if (!arg3 && !strcasecmp(arg1, "gone")) {
+ status = HTTP_GONE;
+ }
+ else if (arg3) {
+ if (!strcasecmp(arg1, "permanent"))
status = HTTP_MOVED_PERMANENTLY;
else if (!strcasecmp(arg1, "temp"))
status = HTTP_MOVED_TEMPORARILY;
| apache@apache.org | ViewVC Help |
| Powered by ViewVC 1.1.2 |