Commit 212b3a6a authored by William A. Rowe Jr's avatar William A. Rowe Jr
Browse files

  Whoops.  To explain, we won't dup filename unless it really didn't match
  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
parent 3d76ab95
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -505,8 +505,8 @@ AP_DECLARE(int) directory_walk(request_rec *r)
            return HTTP_FORBIDDEN;
            return HTTP_FORBIDDEN;
        }
        }
        if (strcmp(r->filename, test_filename) != 0)
        if (strcmp(r->filename, test_filename) != 0)
            r->filename = apr_pstrdup(test_filename);
            r->filename = apr_pstrdup(r->pool, test_filename);
        r->canonical_filename = r->test_filename;
        r->canonical_filename = r->filename;
    }
    }


    num_dirs = ap_count_dirs(test_filename);
    num_dirs = ap_count_dirs(test_filename);