Explorar o código

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 %!s(int64=9) %!d(string=hai) anos
pai
achega
44acf82566
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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);
 }
 
 /////////////////////////////////////////////////////////////////////////////////////////