Explorar o código

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

Source commit: e36dc2448b1b83ab03986feefa1535b631a19f82
Martin Prikryl %!s(int64=5) %!d(string=hai) anos
pai
achega
0d2a93b943
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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