- Timestamp:
- 06/07/18 00:37:20 (7 years ago)
- Location:
- ps/trunk/source
- Files:
-
- 2 edited
-
network/NetMessages.h (modified) (2 diffs)
-
ps/ConfigDB.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/network/NetMessages.h
r21520 r21844 1 /* Copyright (C) 201 7Wildfire Games.1 /* Copyright (C) 2018 Wildfire Games. 2 2 * This file is part of 0 A.D. 3 3 * … … 122 122 START_NMT_CLASS_(Authenticate, NMT_AUTHENTICATE) 123 123 NMT_FIELD(CStrW, m_Name) 124 // TODO: The password should not be printed to logfiles 124 125 NMT_FIELD(CStrW, m_Password) 125 126 NMT_FIELD_INT(m_IsLocalClient, u8, 1) -
ps/trunk/source/ps/ConfigDB.cpp
r21840 r21844 33 33 34 34 static pthread_mutex_t cfgdb_mutex = PTHREAD_MUTEX_INITIALIZER; 35 36 // These entries will not be printed to logfiles 37 static const std::set<CStr> g_UnloggedEntries = { 38 "lobby.password", 39 "lobby.buddies" 40 }; 35 41 36 42 CConfigDB::CConfigDB() … … 369 375 CStr key(header + name); 370 376 newMap[key] = values; 371 if ( key == "lobby.password")377 if (g_UnloggedEntries.find(key) != g_UnloggedEntries.end()) 372 378 LOGMESSAGE("Loaded config string \"%s\"", key); 373 379 else
Note:
See TracChangeset
for help on using the changeset viewer.
