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)