diff options
author | Jim Jagielski <jim@apache.org> | 2009-06-01 17:57:48 +0200 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2009-06-01 17:57:48 +0200 |
commit | 3e289228763a51b1b682c7400a030c4af5afc860 (patch) | |
tree | 56d604df9d0d9a7504758429ff2319f48368127b /modules/mappers/mod_alias.c | |
parent | typo (diff) | |
download | apache2-3e289228763a51b1b682c7400a030c4af5afc860.tar.xz apache2-3e289228763a51b1b682c7400a030c4af5afc860.zip |
Simplify... handle this below, even though it's
after some possible expensive regex
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@780699 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/mappers/mod_alias.c')
-rw-r--r-- | modules/mappers/mod_alias.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/modules/mappers/mod_alias.c b/modules/mappers/mod_alias.c index e843cf5c9a..495c74520b 100644 --- a/modules/mappers/mod_alias.c +++ b/modules/mappers/mod_alias.c @@ -186,9 +186,7 @@ static const char *add_redirect_internal(cmd_parms *cmd, * Go ahead and try to grok the 1st arg, in case it is a * Redirect status. Now if we have 3 args, we expect that * we were able to understand that 1st argument (it's something - * we expected, so if not, then we bail. We also check that we - * don't have a 3rd argument with GONE or with numeric codes - * outside of 300-399; if we do, then that's an error. + * we expected, so if not, then we bail */ if (!strcasecmp(arg1, "permanent")) status = HTTP_MOVED_PERMANENTLY; @@ -206,12 +204,6 @@ static const char *add_redirect_internal(cmd_parms *cmd, if (arg3 && !grokarg1) return "Redirect: invalid first argument (of three)"; - if (arg3 && status == HTTP_GONE) - return "Redirect: third argument not expected"; - - if (arg3 && (apr_isdigit(*arg1) && (status < 300 || status > 399))) - return "Redirect: third argument not expected"; - /* * if we don't have the 3rd arg and we didn't understand the 1st * one, then assume URL-path URL. This also handles case, eg, GONE |