Skip to content

Commit de8980d

Browse files
committed
Bugfix: Do not add sensitive information to history for real
Original code was missing braces, and short-circuited before checking everything after importprivkey
1 parent 9044908 commit de8980d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/qt/rpcconsole.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,10 @@ void RPCConsole::on_lineEdit_returnPressed()
768768
Q_FOREACH(QString unallowedCmd, historyFilter)
769769
{
770770
if (cmd.trimmed().startsWith(unallowedCmd))
771-
storeHistory = false; break;
771+
{
772+
storeHistory = false;
773+
break;
774+
}
772775
}
773776

774777
if (storeHistory)

0 commit comments

Comments
 (0)