]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
core: ap_location_walk() does not deal with the filesystem
authorYann Ylavic <ylavic@apache.org>
Fri, 12 Jul 2024 15:41:42 +0000 (15:41 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 12 Jul 2024 15:41:42 +0000 (15:41 +0000)
So it shouldn't merge slashes according to filesystem rules.

* server/request.c(ap_location_walk):
  Use ap_no2slash_ex(,0) instead of ap_no2slash() to ignore
  filesystem specifics.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919165 13f79535-47bb-0310-9956-ffa450edef68

server/request.c

index 54f656ac7242a7579f6776d86fa2d1117859ce88..791d1cea6b9f8f05270de2da145c50c17260e6f2 100644 (file)
@@ -1500,7 +1500,7 @@ AP_DECLARE(int) ap_location_walk(request_rec *r)
     }
     else {
         char *uri = apr_pstrdup(r->pool, r->uri);
-        ap_no2slash(uri);
+        ap_no2slash_ex(uri, 0/*not an FS path*/);
         entry_uri = uri;
     }