]> granicus.if.org Git - apache/commitdiff
Clear out this optimization till we are prepared for it (not now.)
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 23 Aug 2001 18:49:55 +0000 (18:49 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 23 Aug 2001 18:49:55 +0000 (18:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90562 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_alias.c

index 31aa90e456f5f648f700bf0f6124593bb38a996e..7d6f76444df400d0f6e086a2f89a3af4b0f629c3 100644 (file)
@@ -150,13 +150,14 @@ static const char *add_alias_internal(cmd_parms *cmd, void *dummy,
            return "Regular expression could not be compiled.";
         new->real = r;
     }
-#ifndef OS2
-    else
-        new->real = ap_os_canonical_filename(cmd->pool, r);
-#else
-    new->real = r;
-#endif
-
+    else {
+        /* XXX This may be optimized, but we must know that new->real
+         * exists.  If so, we can dir merge later, trusing new->real
+         * and just canonicalizing the remainder.  Not till I finish
+         * cleaning out the old ap_canonical stuff first.
+         */
+        new->real = r;
+    }
     new->fake = f;
     new->handler = cmd->info;
 
@@ -373,7 +374,12 @@ static char *try_alias_list(request_rec *r, apr_array_header_t *aliases, int doe
                r->handler = p->handler;
                apr_table_setn(r->notes, "alias-forced-type", r->handler);
            }
-
+            /* XXX This is as SLOW as can be, next step, we optimize
+             * and merge to whatever part of the found path was already
+             * canonicalized.  After I finish eliminating os canonical.
+             */
+            if (!doesc)
+                found = ap_server_root_relative(r->pool, found);
            *status = p->redir_status;
 
            return found;