mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user