From ea3cd8499357915e792e40f3f54a061907271af7 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Fri, 30 Dec 2011 13:06:10 +0000 Subject: [PATCH] Quote password in plink command line, so it can contain spaces. Fixes issue #2667. --- source/dbconnection.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index a24ab343..c588ed97 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -885,7 +885,7 @@ begin else PlinkCmd := PlinkCmd + FParameters.Hostname; if FParameters.SSHPassword <> '' then - PlinkCmd := PlinkCmd + ' -pw ' + FParameters.SSHPassword; + PlinkCmd := PlinkCmd + ' -pw "' + FParameters.SSHPassword + '"'; if FParameters.SSHPort > 0 then PlinkCmd := PlinkCmd + ' -P ' + IntToStr(FParameters.SSHPort); if FParameters.SSHPrivateKey <> '' then