From de8980df9d3a1fc0b257139cef10a0e6ba29a8bd Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Tue, 4 Oct 2016 04:11:01 +0000 Subject: Bugfix: Do not add sensitive information to history for real Original code was missing braces, and short-circuited before checking everything after importprivkey --- src/qt/rpcconsole.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/qt') diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 562c9509da..8aa3d10eb5 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -768,7 +768,10 @@ void RPCConsole::on_lineEdit_returnPressed() Q_FOREACH(QString unallowedCmd, historyFilter) { if (cmd.trimmed().startsWith(unallowedCmd)) - storeHistory = false; break; + { + storeHistory = false; + break; + } } if (storeHistory) -- cgit v1.2.3