From 2cfab400b84e46e6c7ceeb93120755ed1276b1d2 Mon Sep 17 00:00:00 2001 From: cmurialdo Date: Tue, 20 Dec 2022 10:25:36 -0300 Subject: [PATCH] Add characters to LogUserEntryWhiteList to keep legible log entries when printing json data and white spaces. --- dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs b/dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs index 34886681d..34db1f154 100644 --- a/dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs +++ b/dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs @@ -509,7 +509,7 @@ public class StringUtil const char QMARK = '_'; static char[] numbersAndSep = new char[] { '1', '2', '3', '4', '5', '6', '7', '8', '9', '-' }; static char[] numbers = new char[] { '1', '2', '3', '4', '5', '6', '7', '8', '9' }; - internal static Dictionary LogUserEntryWhiteList = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789+-_=/".ToDictionary(item => item, item => item); + internal static Dictionary LogUserEntryWhiteList = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789+-_=/[]{}\":, ".ToDictionary(item => item, item => item); internal static Dictionary HostWhiteList = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789./".ToDictionary(item => item, item => item); internal static string Sanitize(string input, Dictionary WhiteList)