* r->parsed_uri.path can be NULL in case of the CONNECT method.
@@ -195,8 +195,10 @@ 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);
+ if (r->parsed_uri.path) {
ap_no2slash(r->parsed_uri.path);
}
+ }
/* All file subrequests are a huge pain... they cannot bubble through the
* next several steps. Only file subrequests are allowed an empty uri,
