Skip to content

Commit d0c4889

Browse files
committed
update test helper to use more robust .ReplaceLineEndings() sanitizer
1 parent d99247c commit d0c4889

File tree

1 file changed

+1
-1
lines changed
  • csharp/ql/test/query-tests/Security Features/CWE-117

1 file changed

+1
-1
lines changed

csharp/ql/test/query-tests/Security Features/CWE-117/LogForging.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static class UserLoggerExtensions
5353
{
5454
public static void WarnSafe(this ILogger logger, string message)
5555
{
56-
logger.Warn(message.Replace(Environment.NewLine, ""));
56+
logger.Warn(message.ReplaceLineEndings(""));
5757
}
5858

5959
public static void WarnUnsafe(this ILogger logger, string message)

0 commit comments

Comments
 (0)