Reject malformed notification feeds before state changes

This commit is contained in:
2026-09-06 13:18:22 +03:00
parent 3096ca45cd
commit 02625906f2
4 changed files with 59 additions and 5 deletions
+1 -1
View File
@@ -76,6 +76,6 @@ export function tenderDigestHtml({ name, tenders }) {
</div>`;
}
function escapeHtml(s) {
export function escapeHtml(s) {
return String(s).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
}