Skip to content

Commit 4f5f0fa

Browse files
authored
Merge branch 'main' into support-http-etags-and-if-none-match-header
2 parents 9a24369 + ba43896 commit 4f5f0fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Applications/SseServer/src/SseServer/Controllers/EventQueue.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ public void Deregister(string address)
2828

2929
public async Task EnqueueFor(string address, string eventName, CancellationToken cancellationToken)
3030
{
31-
_logger.LogDebug("Enqueueing event '{EventName}'", eventName);
31+
var sanitizedEventName = eventName.Replace(Environment.NewLine, "").Replace("\n", "").Replace("\r", "");
32+
_logger.LogDebug("Enqueueing event '{EventName}'", sanitizedEventName);
3233

3334
if (!_channels.TryGetValue(address, out var channel))
3435
throw new ClientNotFoundException();

0 commit comments

Comments
 (0)