]> granicus.if.org Git - apache/commitdiff
Filenames aught to be normalized to the serverroot, and server_root_relative
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 18 Jun 2001 05:39:10 +0000 (05:39 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 18 Jun 2001 05:39:10 +0000 (05:39 +0000)
  already canonicalizes names.

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

modules/cache/mod_file_cache.c

index 39f8b17ad0dd8eec772da077ea8ddad0dc0ee460..df4966595dfd1b9547a375bdcd80565926c8940b 100644 (file)
@@ -193,7 +193,7 @@ static void cache_the_file(cmd_parms *cmd, const char *filename, int mmap)
     apr_status_t rc;
     const char *fspec;
 
-    fspec = ap_os_case_canonical_filename(cmd->pool, filename);
+    fspec = ap_server_root_relative(cmd->pool, filename);
     if ((rc = apr_stat(&tmp.finfo, fspec, APR_FINFO_MIN, 
                        cmd->temp_pool)) != APR_SUCCESS) {
        ap_log_error(APLOG_MARK, APLOG_WARNING, rc, cmd->server,