You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2014/01/11 05:41:44 UTC

svn commit: r1557308 - /subversion/trunk/subversion/mod_dav_svn/util.c

Author: breser
Date: Sat Jan 11 04:41:40 2014
New Revision: 1557308

URL: http://svn.apache.org/r1557308
Log:
Revert the change to dav_svn__build_uri from r1557094.


Modified:
    subversion/trunk/subversion/mod_dav_svn/util.c

Modified: subversion/trunk/subversion/mod_dav_svn/util.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/mod_dav_svn/util.c?rev=1557308&r1=1557307&r2=1557308&view=diff
==============================================================================
--- subversion/trunk/subversion/mod_dav_svn/util.c (original)
+++ subversion/trunk/subversion/mod_dav_svn/util.c Sat Jan 11 04:41:40 2014
@@ -237,11 +237,10 @@ dav_svn__build_uri(const dav_svn_repos *
   const char *href1 = add_href ? "<D:href>" : "";
   const char *href2 = add_href ? "</D:href>" : "";
 
-  /* The first character of root_path is guaranteed to be "/" for
-     every location except the server root.  If there's no component
-     beyond that, then just use "", so that appending another "/"
-     later does not result in "//". */
-  if (root_path[0] == '/' && root_path[1] == '\0')
+  /* The first character of root_path is guaranteed to be "/".  If
+     there's no component beyond that, then just use "", so that
+     appending another "/" later does not result in "//". */
+  if (root_path[1] == '\0')
     root_path = "";
 
   switch (what)