r842904 | brane | 2002-07-31 20:32:14 +0000 (Wed, 31 Jul 2002) * subversion/mod_dav_svn/repos.c (dav_svn_get_resource): do not remove the trailing slash for the root, /. Patch by: Alexy Khrabrov <alexy.khrabrov@setup.org> (Tweaked by me to protect against segfault.) Suggested by: Greg Stein <gstein@collab.net>
r842974 | kfogel | 2002-08-06 16:00:01 +0000 (Tue, 06 Aug 2002) Patch by: Alexy Khrabrov <alexy.khrabrov@setup.org> * subversion/libsvn_subr/path.c (svn_path_is_url) Don't assume a URL must have 3 slashes, since that doesn't hold for top-level locations such as "http://svn.host.tld", which should still be valid without a trailing slash.
r842978 | kfogel | 2002-08-06 22:31:22 +0000 (Tue, 06 Aug 2002) Solve this problem: When hosting SVN at the root of a (virtual) host with URI like http://svn.host.tld/, mod_dav_svn.so fed the command client wrong properties, starting with //. This was handled by a browser, but not by the command-line svn, so 'svn ls http://svn.host.tld/' was returning with Forbidden 403, as tried to read "//!svn/vcc/default", etc. Patch by: Alexy Khrabrov <alexy.khrabrov@setup.org> (Tweaked by me.) * subversion/mod_dav_svn/util.c (dav_svn_build_uri): If root_path is "/", just set it to just "", to avoid getting "//" later. * subversion/mod_dav_svn/dav_svn.h (struct dav_svn_repos): Tweak documentation for root_path field.