/[Apache-SVN]/httpd/httpd/trunk/modules/mappers/mod_alias.c
ViewVC logotype

Diff of /httpd/httpd/trunk/modules/mappers/mod_alias.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- httpd/httpd/trunk/modules/mappers/mod_alias.c	2009/06/01 13:37:59	780648
+++ httpd/httpd/trunk/modules/mappers/mod_alias.c	2009/06/01 14:08:19	780655
@@ -180,9 +180,10 @@
     const char *f = arg2;
     const char *url = arg3;
 
-    if (!arg3 && !strcasecmp(arg1, "gone")) {
+    if (!arg3 && !strcasecmp(arg1, "gone"))
         status = HTTP_GONE;
-    }
+    else if (apr_isdigit(*arg1))
+        status = atoi(arg1);
     else if (arg3) {
         if (!strcasecmp(arg1, "permanent"))
             status = HTTP_MOVED_PERMANENTLY;
@@ -190,8 +191,6 @@
             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)";
         }

 

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2