From d0c48893f59b771efd7caa43280c6ae9897cb5ab Mon Sep 17 00:00:00 2001 From: Gregro Date: Sat, 21 Mar 2026 18:30:44 +0000 Subject: [PATCH] update test helper to use more robust .ReplaceLineEndings() sanitizer --- .../ql/test/query-tests/Security Features/CWE-117/LogForging.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp/ql/test/query-tests/Security Features/CWE-117/LogForging.cs b/csharp/ql/test/query-tests/Security Features/CWE-117/LogForging.cs index adc10f75715..10ff408e226 100644 --- a/csharp/ql/test/query-tests/Security Features/CWE-117/LogForging.cs +++ b/csharp/ql/test/query-tests/Security Features/CWE-117/LogForging.cs @@ -53,7 +53,7 @@ static class UserLoggerExtensions { public static void WarnSafe(this ILogger logger, string message) { - logger.Warn(message.Replace(Environment.NewLine, "")); + logger.Warn(message.ReplaceLineEndings("")); } public static void WarnUnsafe(this ILogger logger, string message)