/[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

revision 780648, Mon Jun 1 13:37:59 2009 UTC revision 780655, Mon Jun 1 14:08:19 2009 UTC
# Line 180  static const char *add_redirect_internal Line 180  static const char *add_redirect_internal
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;
# Line 190  static const char *add_redirect_internal Line 191  static const char *add_redirect_internal
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          }          }

Legend:
Removed from v.780648  
changed lines
  Added in v.780655

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2