Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
44acf82566
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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);
 }
 
 /////////////////////////////////////////////////////////////////////////////////////////