mod_dav_svn: Use our canonicalize function and canonicalize in the right spot.
mod_dav_svn: Use our canonicalize function and canonicalize in the right spot.

Our higher level code shouldn't be figuring out how to canonicalize paths,
that's what we have the canonicalize functions for.  We should always use
them.  Also we don't need to canonicalize paths produced by our own APIs
unless we know they aren't canonical.

This fixes CVE-2013-4131 see the following advisory for details:
http://s.apache.org/CVE-2013-4131

* subversion/mod_dav_svn/repos.c
  (get_parent_resource): canonicalize here and only paths from mod_dav.
  (get_parent_path): Remove custom canonicalize code.


git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@1503528 13f79535-47bb-0310-9956-ffa450edef68

YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion