diff lib/misc.c @ 369:c63208a1f0f1

2003-1-18 Brian Masney <masneyb@gftp.org> * lib/misc.c (gftp_build_path) - when checking for already existing /'s, not only look at the end of the currently built string, but look at the beginning of the token that is about to be added (from Aurelien Jarno <aurel32@debian.org>) * lib/rfc2068.c (rfc2068_list_files) - if the current directory is /, just send the hostname over to the HTTP server. This was broken on some HTTP servers. (from Aurelien Jarno <aurel32@debian.org>)
author masneyb
date Sun, 18 Jan 2004 20:30:08 +0000
parents af541d789f4c
children 44b792841e3f
line wrap: on
line diff
--- a/lib/misc.c	Sun Jan 18 20:18:19 2004 +0000
+++ b/lib/misc.c	Sun Jan 18 20:30:08 2004 +0000
@@ -1194,7 +1194,7 @@
     {
       len = strlen (element);
 
-      if (retlen > 0 && ret[retlen - 1] == '/')
+      if (retlen > 0 && (ret[retlen - 1] == '/' || element[0] == '/'))
         add_separator = 0;
       else
         {