Explorar el 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 hace 9 años
padre
commit
44acf82566
Se han modificado 1 ficheros con 3 adiciones y 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);
 }
 
 /////////////////////////////////////////////////////////////////////////////////////////