mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-16 03:30:50 +08:00
Fix new crash in ConnectionInfo (mouse over server version status panel)
This commit is contained in:
@ -5020,6 +5020,7 @@ var
|
||||
begin
|
||||
Result := Inherited;
|
||||
Result.Values[f_('Client version (%s)', [FLib.DllFile])] := DecodeApiString(FLib.mysql_get_client_info);
|
||||
if FActive then begin
|
||||
Infos := DecodeApiString(FLib.mysql_stat(FHandle));
|
||||
rx := TRegExpr.Create;
|
||||
rx.ModifierG := False;
|
||||
@ -5035,6 +5036,7 @@ begin
|
||||
break;
|
||||
end;
|
||||
rx.Free;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
@ -5044,6 +5046,7 @@ var
|
||||
rx: TRegExpr;
|
||||
begin
|
||||
Result := Inherited;
|
||||
if FActive then begin
|
||||
// clear out password
|
||||
ConnectionString := FAdoHandle.ConnectionString;
|
||||
rx := TRegExpr.Create;
|
||||
@ -5052,6 +5055,7 @@ begin
|
||||
ConnectionString := rx.Replace(ConnectionString, '${1}******', True);
|
||||
rx.Free;
|
||||
Result.Values[_('Connection string')] := ConnectionString;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user