浏览代码

Bug fix: Path argument of Session.PutFile is incorrectly escaped

Source commit: e36dc2448b1b83ab03986feefa1535b631a19f82
Martin Prikryl 4 年之前
父节点
当前提交
0d2a93b943
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dotnet/Session.cs

+ 1 - 1
dotnet/Session.cs

@@ -827,7 +827,7 @@ namespace WinSCP
                 _process.StdIn = stream ?? throw Logger.WriteException(new ArgumentNullException(nameof(stream)));
                 try
                 {
-                    remoteFilePath = RemotePath.EscapeFileMask(remoteFilePath);
+                    remoteFilePath = RemotePath.EscapeOperationMask(remoteFilePath);
                     TransferOperationResult operationResult = DoPutFiles("-", remoteFilePath, false, options);
                     operationResult.Check();
                     // Assert that any transfer took place at all