浏览代码

Censor more possible access tokens from the log

I don't know if they're all relevant to us. At least "token=" definitely
is.
Vincent Lang 9 年之前
父节点
当前提交
44acf82566
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/utils/Log.cpp

+ 3 - 0
src/utils/Log.cpp

@@ -63,6 +63,9 @@ static void processLog(QString& msg)
 {
   elidePattern(msg, "X-Plex-Token=", 20);
   elidePattern(msg, "X-Plex-Token%3D", 20);
+  elidePattern(msg, "auth_token=", 20);
+  elidePattern(msg, "authenticationToken=\"", 20);
+  elidePattern(msg, "token=", 20);
 }
 
 /////////////////////////////////////////////////////////////////////////////////////////