]> granicus.if.org Git - apache/commitdiff
Another spot we are certain of the canonical_filename
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 23 Aug 2001 21:21:17 +0000 (21:21 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 23 Aug 2001 21:21:17 +0000 (21:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90590 13f79535-47bb-0310-9956-ffa450edef68

server/request.c

index 2509520fb6e6febbd47f805af3f87e3aa642cba5..4e3c0043f5559c1e5ee58db44a0d92df550b3ee7 100644 (file)
@@ -1404,6 +1404,9 @@ AP_DECLARE(request_rec *) ap_sub_req_lookup_dirent(const apr_finfo_t *dirent,
     /* This is 100% safe, since dirent->name just came from the filesystem */
     rnew->uri = ap_make_full_path(rnew->pool, udir, dirent->name);
     rnew->filename = ap_make_full_path(rnew->pool, fdir, dirent->name);
+    if (r->canonical_filename == r->filename)
+        rnew->canonical_filename = rnew->filename;
+    
     ap_parse_uri(rnew, rnew->uri);    /* fill in parsed_uri values */
 
     rnew->per_dir_config = r->per_dir_config;