ソースを参照

Bug 1452: Do not show password in full open command syntax suggestion

https://winscp.net/tracker/1452

Source commit: eb9b4741b0f118f26ca889291ad434932a79fdc4
Martin Prikryl 9 年 前
コミット
c34159cf6e
1 ファイル変更4 行追加0 行削除
  1. 4 0
      source/core/Script.cpp

+ 4 - 0
source/core/Script.cpp

@@ -2576,6 +2576,10 @@ void __fastcall TManagementScript::Connect(const UnicodeString Session,
       {
         std::unique_ptr<TSessionData> DataWithFingerprint(Data->Clone());
         DataWithFingerprint->LookupLastFingerprint();
+        if (!DataWithFingerprint->Password.IsEmpty())
+        {
+          DataWithFingerprint->Password = PasswordMask;
+        }
 
         PrintLine(LoadStr(SCRIPT_SITE_WARNING));
         PrintLine(L"open " + DataWithFingerprint->GenerateOpenCommandArgs(false));