From: William A. Rowe Jr Date: Mon, 18 Jun 2001 05:39:10 +0000 (+0000) Subject: Filenames aught to be normalized to the serverroot, and server_root_relative X-Git-Tag: 2.0.19~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6bb83641f083f9d55a65d7e5085ffecb45b591a;p=thirdparty%2Fapache%2Fhttpd.git Filenames aught to be normalized to the serverroot, and server_root_relative already canonicalizes names. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89382 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/mod_file_cache.c b/modules/cache/mod_file_cache.c index 39f8b17ad0d..df4966595df 100644 --- a/modules/cache/mod_file_cache.c +++ b/modules/cache/mod_file_cache.c @@ -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,