From 8ee11b1a8e23d20accb3e34f8f36a2a5669f772f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 1 Jul 2019 00:00:34 +0200 Subject: [PATCH] GH-2716 do not censor values shorter than 4 in logs --- api/logic/minecraft/MinecraftInstance.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/logic/minecraft/MinecraftInstance.cpp b/api/logic/minecraft/MinecraftInstance.cpp index 0d97e4af..35f692c4 100644 --- a/api/logic/minecraft/MinecraftInstance.cpp +++ b/api/logic/minecraft/MinecraftInstance.cpp @@ -648,8 +648,7 @@ QMap MinecraftInstance::createCensorFilterFromSession(AuthSess auto i = sessionRef.u.properties.begin(); while (i != sessionRef.u.properties.end()) { - if(i.key() == "preferredLanguage") - { + if(i.value().length() <= 3) { ++i; continue; }