diff options
author | Ruediger Pluem <rpluem@apache.org> | 2019-03-18 09:16:06 +0000 |
---|---|---|
committer | Ruediger Pluem <rpluem@apache.org> | 2019-03-18 09:16:06 +0000 |
commit | 97752cb849b1541d00f16fcea2426fd0ed5680b5 (patch) | |
tree | da5062063266ac79efce6d4bc2bf9bd3bcde5d32 /server/request.c | |
parent | 807a365d9111c366e5314f2b3572501322feb489 (diff) | |
download | httpd-97752cb849b1541d00f16fcea2426fd0ed5680b5.tar.gz |
* Play safe in case we get no name
Reverted by r1855742.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1855741 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/request.c')
-rw-r--r-- | server/request.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/request.c b/server/request.c index 052e20b3dd..a448fa7af5 100644 --- a/server/request.c +++ b/server/request.c @@ -195,7 +195,9 @@ AP_DECLARE(int) ap_process_request_internal(request_rec *r) ap_getparents(r->uri); /* OK --- shrinking transformations... */ if (sconf->merge_slashes != AP_CORE_CONFIG_OFF) { ap_no2slash(r->uri); - ap_no2slash(r->parsed_uri.path); + if (r->parsed_uri.path) { + ap_no2slash(r->parsed_uri.path); + } } /* All file subrequests are a huge pain... they cannot bubble through the |