diff options
author | Jeff Trawick <trawick@apache.org> | 2006-01-30 15:54:22 +0100 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2006-01-30 15:54:22 +0100 |
commit | 7f6733a594ae0116464782e4917ee259c3c4fbb4 (patch) | |
tree | f47221df85310a768467b0fd5a714d18123c9020 /modules/mappers/mod_speling.c | |
parent | The AuthnProviderAlias directive has been merged into mod_authn_core. mod_au... (diff) | |
download | apache2-7f6733a594ae0116464782e4917ee259c3c4fbb4.tar.xz apache2-7f6733a594ae0116464782e4917ee259c3c4fbb4.zip |
mod_speling: Stop crashing with certain non-file requests.
(r->filename unset)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@373519 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/mappers/mod_speling.c')
-rw-r--r-- | modules/mappers/mod_speling.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/mappers/mod_speling.c b/modules/mappers/mod_speling.c index a7b9b9ff16..2c427df254 100644 --- a/modules/mappers/mod_speling.c +++ b/modules/mappers/mod_speling.c @@ -213,7 +213,12 @@ static int check_speling(request_rec *r) } /* We've already got a file of some kind or another */ - if (r->proxyreq || (r->finfo.filetype != 0)) { + if (r->finfo.filetype != 0) { + return DECLINED; + } + + /* Not a file request */ + if (r->proxyreq || !r->filename) { return DECLINED; } |