浏览代码

Bug 1587: When parsing MLSD listing, file name was incorrectly tried to be interpreted against various rare part syntaxes, leading to wrong name being displayed (2nd try)

https://winscp.net/tracker/1587
(cherry picked from commit 969499f1985602df4397c1b6c729e51908697052)

Source commit: 2d9f95c8f1310321393ce240326743bc6521578d
Martin Prikryl 8 年之前
父节点
当前提交
7120b33c7a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      source/filezilla/FtpListResult.cpp

+ 4 - 0
source/filezilla/FtpListResult.cpp

@@ -1466,6 +1466,10 @@ BOOL CFtpListResult::parseAsMlsd(const char *line, const int linelen, t_director
       direntry.name = fileName;
       direntry.name = fileName;
     }
     }
   }
   }
+  else
+  {
+    direntry.name = fileName;
+  }
   return TRUE;
   return TRUE;
 }
 }