aboutsummaryrefslogtreecommitdiff
path: root/src/util/system.cpp
diff options
context:
space:
mode:
authorMeshCollider <[email protected]>2019-01-03 23:54:19 +1300
committerMeshCollider <[email protected]>2019-01-09 17:32:35 +1300
commit8cff83124bcac936ecc6add6dca72b125a79a08f (patch)
tree115734b79c3499e49865e52c1ae2272aa1dd053d /src/util/system.cpp
parentMerge #15081: Doc: Update release notes for master through to 2019-01-01 (diff)
downloaddiscoin-8cff83124bcac936ecc6add6dca72b125a79a08f.tar.xz
discoin-8cff83124bcac936ecc6add6dca72b125a79a08f.zip
Error if rpcpassword contains hash in conf sections
Diffstat (limited to 'src/util/system.cpp')
-rw-r--r--src/util/system.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/system.cpp b/src/util/system.cpp
index 8e201ec59..ffe4d21ee 100644
--- a/src/util/system.cpp
+++ b/src/util/system.cpp
@@ -865,7 +865,7 @@ static bool GetConfigOptions(std::istream& stream, std::string& error, std::vect
} else if ((pos = str.find('=')) != std::string::npos) {
std::string name = prefix + TrimString(str.substr(0, pos), pattern);
std::string value = TrimString(str.substr(pos + 1), pattern);
- if (used_hash && name == "rpcpassword") {
+ if (used_hash && name.find("rpcpassword") != std::string::npos) {
error = strprintf("parse error on line %i, using # in rpcpassword can be ambiguous and should be avoided", linenr);
return false;
}