Przeglądaj źródła

Issue 2300 – Compatibility with FTP servers that return an empty path in root

https://winscp.net/tracker/2300

Source commit: 653c803d0d0d2210133463b7c67432c34155b5e3
Martin Prikryl 1 rok temu
rodzic
commit
16e9c0ccec
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      source/core/FtpFileSystem.cpp

+ 1 - 1
source/core/FtpFileSystem.cpp

@@ -2047,7 +2047,7 @@ void __fastcall TFTPFileSystem::ReadCurrentDirectory()
 
         if (Result)
         {
-          if ((Path.Length() > 0) && !UnixIsAbsolutePath(Path))
+          if (Path.IsEmpty() || !UnixIsAbsolutePath(Path))
           {
             Path = L"/" + Path;
           }