]> andersk Git - mod-vhost-ldap.git/commitdiff
Create new real name with apr_filepath_merge
authorOndřej Surý <ondrej@sury.org>
Tue, 8 Jun 2010 09:37:49 +0000 (11:37 +0200)
committerOndřej Surý <ondrej@sury.org>
Tue, 8 Jun 2010 11:14:28 +0000 (13:14 +0200)
mod_vhost_ldap.c

index 64ee21bd92fc55b6ec8c08589c1ff5c86ecdd791..50032deb9a00957b108e4def3207d80dfc4bc413 100644 (file)
@@ -620,27 +620,23 @@ fallback:
        top->server->server_admin = apr_pstrdup (top->pool, reqc->admin);
     }
 
-    real = apr_pstrcat(r->pool, reqc->docroot, r->uri);
+    /* Create real name */
+    apr_filepath_merge((char**)&real, reqc->docroot, r->uri, APR_FILEPATH_TRUENAME, r->pool);
 
     ap_log_rerror(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r,
                  "[mod_vhost_ldap.c]: ap_server_root_relative(%s) is: %s", real, ap_server_root_relative(r->pool, real));
 
-    ap_log_rerror(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r,
-                 "[mod_vhost_ldap.c]: ap_document_root is: %s", ap_document_root(r));
-
     reqc->saved_docroot = apr_pstrdup(top->pool, ap_document_root(r));
 
     if (set_document_root(r, reqc->docroot) != OK)
         return HTTP_INTERNAL_SERVER_ERROR;
 
     ap_log_rerror(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r,
-                 "[mod_vhost_ldap.c]: ap_document_root set to: [%s], relative [%s]",
-                 ap_document_root(r),
+                 "[mod_vhost_ldap.c]: ap_server_root_relative [%s]",
                  ap_server_root_relative(r->pool, real));
 
     // set environment variables
     e = top->subprocess_env;
-    apr_table_addn (e, "SERVER_ROOT", reqc->docroot);
     apr_table_addn (e, "DOCUMENT_ROOT", reqc->docroot);
 
     /* Hack to allow post-processing by other modules (mod_rewrite, mod_alias) */
This page took 0.107883 seconds and 5 git commands to generate.