summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-08-10 19:25:27 +0200
committerPetr Mrázek <peterix@gmail.com>2016-08-10 19:52:38 +0200
commit55544893a3c2a8f3d5cad13d11b3b2af6d69adcf (patch)
tree04806fbb213281289985c0308ce92158df47c5ee /api
parente2f3652a0f5fc51736cbda7ac4e337a597f3aed1 (diff)
downloadMultiMC-55544893a3c2a8f3d5cad13d11b3b2af6d69adcf.tar
MultiMC-55544893a3c2a8f3d5cad13d11b3b2af6d69adcf.tar.gz
MultiMC-55544893a3c2a8f3d5cad13d11b3b2af6d69adcf.tar.lz
MultiMC-55544893a3c2a8f3d5cad13d11b3b2af6d69adcf.tar.xz
MultiMC-55544893a3c2a8f3d5cad13d11b3b2af6d69adcf.zip
GH-1643 do not censor preferredLanguage in logs
Diffstat (limited to 'api')
-rw-r--r--api/logic/minecraft/MinecraftInstance.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/api/logic/minecraft/MinecraftInstance.cpp b/api/logic/minecraft/MinecraftInstance.cpp
index b64d9bd2..174ec9be 100644
--- a/api/logic/minecraft/MinecraftInstance.cpp
+++ b/api/logic/minecraft/MinecraftInstance.cpp
@@ -272,6 +272,11 @@ QMap<QString, QString> MinecraftInstance::createCensorFilterFromSession(AuthSess
auto i = sessionRef.u.properties.begin();
while (i != sessionRef.u.properties.end())
{
+ if(i.key() == "preferredLanguage")
+ {
+ ++i;
+ continue;
+ }
addToFilter(i.value(), "<" + i.key().toUpper() + ">");
++i;
}