]> granicus.if.org Git - apache/commit
Rather than continuing to canonicalize within directory_walk (very time
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 23 Aug 2001 19:19:52 +0000 (19:19 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 23 Aug 2001 19:19:52 +0000 (19:19 +0000)
commit1ffa5e572fe1817348ea13463b40b8d107a9eaeb
tree46b87000527920315ab42ae2908f864ab6600547
parent503b17b20bb1d996b02540c85668bbddb96638d4
  Rather than continuing to canonicalize within directory_walk (very time
  consuming on all but *nix systems) we temporarily canonicalize to compare
  the results of the many merges, and fail on a mismatch.

  The apr_filepath_merge and ap_server_root_relative calls now merge the
  file _by canonicalizing it_.  That includes resolving all /../, /./,
  and // misnomers.

  A minor effort is required to figure out who all munges the r->filename
  in an inappropriate manner.

  The final (return to optimized state) probably involves setting an
  r->goodname argument to r->filename, every time we properly merge
  through ap_server_root_relative or apr_filepath_merge().

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