From: Stefan Fritsch Date: Wed, 27 Jul 2011 07:23:35 +0000 (+0000) Subject: Use ap_document_root() in ap_core_translate() to allow modules like X-Git-Tag: 2.3.14^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0aad1ca971207f0f55a71033c83268db0764679f;p=apache Use ap_document_root() in ap_core_translate() to allow modules like mod_vhost_ldap let core do the name translation git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1151361 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index c2b646408a..b5a028029d 100644 --- a/server/core.c +++ b/server/core.c @@ -3915,8 +3915,6 @@ AP_INIT_TAKE1("TraceEnable", set_trace_enable, NULL, RSRC_CONF, AP_DECLARE_NONSTD(int) ap_core_translate(request_rec *r) { - void *sconf = r->server->module_config; - core_server_config *conf = ap_get_core_module_config(sconf); apr_status_t rv; /* XXX this seems too specific, this should probably become @@ -3944,7 +3942,7 @@ AP_DECLARE_NONSTD(int) ap_core_translate(request_rec *r) while (*path == '/') { ++path; } - if ((rv = apr_filepath_merge(&r->filename, conf->ap_document_root, path, + if ((rv = apr_filepath_merge(&r->filename, ap_document_root(r), path, APR_FILEPATH_TRUENAME | APR_FILEPATH_SECUREROOT, r->pool)) != APR_SUCCESS) { @@ -3967,7 +3965,7 @@ AP_DECLARE_NONSTD(int) ap_core_translate(request_rec *r) while (*path == '/') { ++path; } - if ((rv = apr_filepath_merge(&r->filename, conf->ap_document_root, path, + if ((rv = apr_filepath_merge(&r->filename, ap_document_root(r), path, APR_FILEPATH_TRUENAME | APR_FILEPATH_SECUREROOT, r->pool)) != APR_SUCCESS) {