Quote plink.exe path and file in SSH tunnel preparation, so spaces in the path do not break the CreateProcess call. See http://www.heidisql.com/forum.php?t=13794

This commit is contained in:
Ansgar Becker
2013-11-04 05:22:28 +00:00
parent 35b0c28fb3
commit bf90f6664d

View File

@@ -1088,7 +1088,7 @@ begin
ntMySQL_SSHtunnel: begin
// Build plink.exe command line
// plink bob@domain.com -pw myPassw0rd1 -P 22 -i "keyfile.pem" -L 55555:localhost:3306
PlinkCmd := FParameters.SSHPlinkExe + ' -ssh ';
PlinkCmd := '"'+FParameters.SSHPlinkExe + '" -ssh ';
if FParameters.SSHUser <> '' then
PlinkCmd := PlinkCmd + FParameters.SSHUser + '@';
if FParameters.SSHHost <> '' then