GH-2716 do not censor values shorter than 4 in logs

This commit is contained in:
Petr Mrázek 2019-07-01 00:00:34 +02:00
parent 0b86a7ebf3
commit 8ee11b1a8e

View File

@ -648,8 +648,7 @@ QMap<QString, QString> MinecraftInstance::createCensorFilterFromSession(AuthSess
auto i = sessionRef.u.properties.begin(); auto i = sessionRef.u.properties.begin();
while (i != sessionRef.u.properties.end()) while (i != sessionRef.u.properties.end())
{ {
if(i.key() == "preferredLanguage") if(i.value().length() <= 3) {
{
++i; ++i;
continue; continue;
} }