/[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 490142, Mon Dec 25 12:06:33 2006 UTC revision 778942, Wed May 27 00:58:41 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 != NULL) {
184      if (!strcasecmp(arg1, "gone"))      if (!strcasecmp(arg1, "gone"))
185          status = HTTP_GONE;          status = HTTP_GONE;
186      else if (!strcasecmp(arg1, "permanent"))      else if (!strcasecmp(arg1, "permanent"))
# Line 191  static const char *add_redirect_internal Line 192  static const char *add_redirect_internal
192      else if (apr_isdigit(*arg1))      else if (apr_isdigit(*arg1))
193          status = atoi(arg1);          status = atoi(arg1);
194      else {      else {
195                return "Redirect: invalid first argument (of three)";
196            }
197        }
198        else {
199          f = arg1;          f = arg1;
200          url = arg2;          url = arg2;
201      }      }

Legend:
Removed from v.490142  
changed lines
  Added in v.778942

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2