From ad706f55194ffbb9725d9ef4b8dc1fe164abd68e Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Thu, 6 Aug 2020 16:46:30 +0200 Subject: [PATCH] Issue #1114: send Enter after plink anti-spoof output "Access granted. Press Return to begin session" --- source/dbconnection.pas | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 17bcfa3d..1774878b 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -1060,10 +1060,11 @@ begin raise EDbError.Create(_('PLink cancelled')); end; end; - end else if ErrorText.StartsWith('Using username ', True) - or ErrorText.StartsWith('Pre-authentication banner ', True) + end else if + ErrorText.StartsWith('Using username ', True) // see issue #577 - new plink version sends this informational text to error pipe + or ErrorText.StartsWith('Pre-authentication banner ', True) // see issue #704 + or ErrorText.StartsWith('Access granted. Press Return to begin session', True) // see issue #1114 then begin - // See #577 - new plink version sends this informational text to error pipe FConnection.Log(lcError, 'PLink: '+ErrorText); SendText(CRLF); end else begin