diff options
author | Ruediger Pluem <rpluem@apache.org> | 2009-06-01 16:08:19 +0200 |
---|---|---|
committer | Ruediger Pluem <rpluem@apache.org> | 2009-06-01 16:08:19 +0200 |
commit | 3ae933ccf19fe1c508f3f64b5acc0f48468eadeb (patch) | |
tree | 67616f22bf65d2b5348f0403a61c70f5ebeafa6d /modules/mappers/mod_alias.c | |
parent | Fix error with arg counting (diff) | |
download | apache2-3ae933ccf19fe1c508f3f64b5acc0f48468eadeb.tar.xz apache2-3ae933ccf19fe1c508f3f64b5acc0f48468eadeb.zip |
* Some custom defined response codes also do not require 3 arguments (all that
are not redirects).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@780655 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/mappers/mod_alias.c')
-rw-r--r-- | modules/mappers/mod_alias.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/mappers/mod_alias.c b/modules/mappers/mod_alias.c index 09aa2d8ca4..717f229e8a 100644 --- a/modules/mappers/mod_alias.c +++ b/modules/mappers/mod_alias.c @@ -180,9 +180,10 @@ static const char *add_redirect_internal(cmd_parms *cmd, 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 @@ static const char *add_redirect_internal(cmd_parms *cmd, 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)"; } |