]> granicus.if.org Git - apache/commitdiff
Whoops. To explain, we won't dup filename unless it really didn't match
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 23 Aug 2001 21:58:07 +0000 (21:58 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 23 Aug 2001 21:58:07 +0000 (21:58 +0000)
  in the first place.  We are about to abuse test_filename, so don't try
  using that copy.

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

server/request.c

index ce07b05151ce72f17f8b0f9de0a6565d162ea864..bc851911329d4c53081917227f0b9a73099bc8a5 100644 (file)
@@ -505,8 +505,8 @@ AP_DECLARE(int) directory_walk(request_rec *r)
             return HTTP_FORBIDDEN;
         }
         if (strcmp(r->filename, test_filename) != 0)
-            r->filename = apr_pstrdup(test_filename);
-        r->canonical_filename = r->test_filename;
+            r->filename = apr_pstrdup(r->pool, test_filename);
+        r->canonical_filename = r->filename;
     }
 
     num_dirs = ap_count_dirs(test_filename);