]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* r->parsed_uri.path can be NULL in case of the CONNECT method.
authorRuediger Pluem <rpluem@apache.org>
Mon, 18 Mar 2019 09:21:26 +0000 (09:21 +0000)
committerRuediger Pluem <rpluem@apache.org>
Mon, 18 Mar 2019 09:21:26 +0000 (09:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1855744 13f79535-47bb-0310-9956-ffa450edef68

server/request.c

index 052e20b3dd5847ba71334a59b5aab25ade87e3de..a448fa7af5f4d2f98e50b7942bf0ac5372af5896 100644 (file)
@@ -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