diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-07-01 00:00:34 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-07-01 00:00:34 +0200 |
commit | 8ee11b1a8e23d20accb3e34f8f36a2a5669f772f (patch) | |
tree | 26ec9654545719d639a9c4a108dc0222c5b9ad80 /api/logic | |
parent | 0b86a7ebf32ae52c341f4b535537aa4f7e019970 (diff) | |
download | MultiMC-8ee11b1a8e23d20accb3e34f8f36a2a5669f772f.tar MultiMC-8ee11b1a8e23d20accb3e34f8f36a2a5669f772f.tar.gz MultiMC-8ee11b1a8e23d20accb3e34f8f36a2a5669f772f.tar.lz MultiMC-8ee11b1a8e23d20accb3e34f8f36a2a5669f772f.tar.xz MultiMC-8ee11b1a8e23d20accb3e34f8f36a2a5669f772f.zip |
GH-2716 do not censor values shorter than 4 in logs
Diffstat (limited to 'api/logic')
-rw-r--r-- | api/logic/minecraft/MinecraftInstance.cpp | 3 |
1 files changed, 1 insertions, 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<QString, QString> 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; } |