From bf90f6664d39fa972605aed5b2a9bf0480d5f907 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Mon, 4 Nov 2013 05:22:28 +0000 Subject: [PATCH] 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 --- source/dbconnection.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 9e6bd8b4..92ce1f51 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -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