From d26008fd8afd31caa3f1c7c8dca1c4fd6039ace6 Mon Sep 17 00:00:00 2001 From: Daniele Teti Date: Fri, 13 Oct 2023 17:36:52 +0200 Subject: [PATCH] Sanitized SSE data --- sources/MVCFramework.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/MVCFramework.pas b/sources/MVCFramework.pas index 3cd64c35..ead29dc9 100644 --- a/sources/MVCFramework.pas +++ b/sources/MVCFramework.pas @@ -4368,7 +4368,7 @@ procedure TMVCRenderer.RenderSSE(const EventID, EventData: string; EventName: st end; // actual message - ResponseStream.Append('data: ' + EventData + #13#13); + ResponseStream.Append('data: ' + EventData.Replace(sLineBreak, '', [rfReplaceAll]) + #13#13); // render all the stuff RenderResponseStream;