From 6f8990e6da09140b3cdd45be542f63478fc9a2ee Mon Sep 17 00:00:00 2001 From: psq95 Date: Sun, 13 Aug 2023 10:29:05 +0100 Subject: [PATCH] Strip sensitive information from SQL log --- code/controllers/subsystem/dbcore.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/controllers/subsystem/dbcore.dm b/code/controllers/subsystem/dbcore.dm index 4eff4fbf..f1d63827 100644 --- a/code/controllers/subsystem/dbcore.dm +++ b/code/controllers/subsystem/dbcore.dm @@ -361,5 +361,7 @@ Delayed insert mode was removed in mysql 7 and only works with MyISAM type table //strip sensitive stuff if(findtext(message, ": CreateConnection(")) message = "CreateConnection CENSORED" + if(findtext(message, "INET_ATON(")) + message = "INET_ATON CENSORED" log_sql("BSQL_DEBUG: [message]")