Skip to content

Commit

Permalink
Sanitized SSE data
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleteti committed Oct 13, 2023
1 parent 9c70a62 commit d26008f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/MVCFramework.pas
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d26008f

Please sign in to comment.