Преглед изворни кода

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);
 }
 
 /////////////////////////////////////////////////////////////////////////////////////////