]> granicus.if.org Git - apache/commitdiff
Reverse the hook ordering for mod_userdir and mod_alias so
authorJoshua Slive <slive@apache.org>
Tue, 7 May 2002 00:17:11 +0000 (00:17 +0000)
committerJoshua Slive <slive@apache.org>
Tue, 7 May 2002 00:17:11 +0000 (00:17 +0000)
that Alias/ScriptAlias will override Userdir.

PR: 8841
Reviewed by: Justin Erenkrantz

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

CHANGES
modules/mappers/mod_alias.c
modules/mappers/mod_userdir.c

diff --git a/CHANGES b/CHANGES
index 3bcd6dc1daa45347978fc62a1eb52af839bccffe..ff0f09a72fa79015507d0f1525fe0a58d18734f3 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,9 @@
 Changes with Apache 2.0.37
 
+  *) Reverse the hook ordering for mod_userdir and mod_alias so
+     that Alias/ScriptAlias will override Userdir.  PR 8841
+     [Joshua Slive]
+
   *) Move mod_deflate out of experimental and into filters.
      [Justin Erenkrantz]
 
index 11e974ec0775a18cf5bf7d574a30e9e4d886b39c..e21f836e645322df4134b4f2be3df726a8adf95d 100644 (file)
@@ -467,9 +467,9 @@ static int fixup_redir(request_rec *r)
 
 static void register_hooks(apr_pool_t *p)
 {
-    static const char * const aszPre[]={ "mod_userdir.c",NULL };
+    static const char * const aszSucc[]={ "mod_userdir.c",NULL };
 
-    ap_hook_translate_name(translate_alias_redir,aszPre,NULL,APR_HOOK_MIDDLE);
+    ap_hook_translate_name(translate_alias_redir,NULL,aszSucc,APR_HOOK_MIDDLE);
     ap_hook_fixups(fixup_redir,NULL,NULL,APR_HOOK_MIDDLE);
 }
 
index 0b035894a1e2d2e8b4aca2ec3e446857bb65a44e..19408ee0c84474666e97ed4ff68511b257a01b78 100644 (file)
@@ -392,9 +392,9 @@ static ap_unix_identity_t *get_suexec_id_doer(const request_rec *r)
 
 static void register_hooks(apr_pool_t *p)
 {
-    static const char * const aszSucc[]={ "mod_alias.c",NULL };
+    static const char * const aszPre[]={ "mod_alias.c",NULL };
 
-    ap_hook_translate_name(translate_userdir,NULL,aszSucc,APR_HOOK_MIDDLE);
+    ap_hook_translate_name(translate_userdir,aszPre,NULL,APR_HOOK_MIDDLE);
 #ifdef HAVE_UNIX_SUEXEC
     ap_hook_get_suexec_identity(get_suexec_id_doer,NULL,NULL,APR_HOOK_MIDDLE);
 #endif