Skip to content

Commit 1de8da9

Browse files
committed
add doublequotes to $url FileTransfert_curl.upload
1 parent 801ec21 commit 1de8da9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Project/Sources/Classes/FileTransfer_curl.4dm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ Function upload($sourcepath : Text; $targetpath : Text; $append : Boolean)->$suc
9595
// If the remote file does not exist, it will be created.
9696
// Note that this flag is ignored by some SFTP servers (including OpenSSH).
9797
ASSERT:C1129($sourcepath#""; "source path must not be empty")
98+
$doublequotes:=Char:C90(Double quote:K15:41)
9899
If ($targetpath="")
99100
$targetpath:="/"
100101
End if
@@ -105,7 +106,7 @@ Function upload($sourcepath : Text; $targetpath : Text; $append : Boolean)->$suc
105106
If ((This:C1470._AutoCreateRemoteDir#Null:C1517) && (This:C1470._AutoCreateRemoteDir))
106107
$url:="--ftp-create-dirs "+$url
107108
End if
108-
$url:="-T "+$sourcepath+" "+$url+$targetpath
109+
$url:="-T "+$doublequotes+$sourcepath+$doublequotes+" "+$url+$doublequotes+$targetpath+$doublequotes
109110
$oldtimeout:=This:C1470._timeout
110111
If ($oldtimeout=0)
111112
This:C1470._timeout:=600

0 commit comments

Comments
 (0)