You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 79da4ac
Browse filesBrowse the repository at this point in the historyBrowse files
test(email): add XSS + plain-text verbatim guards for RIExchange HTML renderer
Add two tests missing from the #296 wave:
- TestRenderRIExchangePendingApprovalEmailHTML_EscapesHostilePayload:
feeds <script>alert('xss')</script> into RequestedByName,
CancellationWindowNote, and Skipped.Reason and asserts the literal
tag is absent from the rendered HTML (html/template auto-escaping).
- TestRenderRIExchangePendingApprovalEmail_PlainTextVerbatim:
feeds O'Brien & Co and a plus-addressed email into the plain-text
renderer and asserts no ' / & entity encoding appears
(text/template emits values verbatim).
Also replace em-dash with double-hyphen in the HTML template comment
(style rule).
0 commit comments