diff options
| author | Luke Dashjr <[email protected]> | 2016-10-04 04:11:01 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2016-12-29 11:43:29 +0000 |
| commit | de8980df9d3a1fc0b257139cef10a0e6ba29a8bd (patch) | |
| tree | e8a0eafee6f9d08054b235cb85085931e97c04f1 /src | |
| parent | Qt/RPCConsole: Don't store commands with potentially sensitive information in... (diff) | |
| download | discoin-de8980df9d3a1fc0b257139cef10a0e6ba29a8bd.tar.xz discoin-de8980df9d3a1fc0b257139cef10a0e6ba29a8bd.zip | |
Bugfix: Do not add sensitive information to history for real
Original code was missing braces, and short-circuited before checking everything after importprivkey
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/rpcconsole.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 562c9509d..8aa3d10eb 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) |