aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2016-10-04 04:11:01 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2016-12-29 11:43:29 +0000
commitde8980df9d3a1fc0b257139cef10a0e6ba29a8bd (patch)
treee8a0eafee6f9d08054b235cb85085931e97c04f1
parent9044908636f0072d001d9a029053a384127b002b (diff)
downloadbitcoin-de8980df9d3a1fc0b257139cef10a0e6ba29a8bd.tar.xz
Bugfix: Do not add sensitive information to history for real
Original code was missing braces, and short-circuited before checking everything after importprivkey
-rw-r--r--src/qt/rpcconsole.cpp5
1 files changed, 4 insertions, 1 deletions
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)