summaryrefslogtreecommitdiffstats
path: root/server/core.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2011-07-27 09:23:35 +0200
committerStefan Fritsch <sf@apache.org>2011-07-27 09:23:35 +0200
commit0aad1ca971207f0f55a71033c83268db0764679f (patch)
tree14393147c8ef9f0ec5e3f3fd14944ea58ffa1d62 /server/core.c
parentInstall signal handlers for crashes before detaching. Previously, there (diff)
downloadapache2-0aad1ca971207f0f55a71033c83268db0764679f.tar.xz
apache2-0aad1ca971207f0f55a71033c83268db0764679f.zip
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
Diffstat (limited to 'server/core.c')
-rw-r--r--server/core.c6
1 files changed, 2 insertions, 4 deletions
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) {