From 8a9583a705cd14ea178fb3e29b47f71b369ade17 Mon Sep 17 00:00:00 2001 From: Oto Macenauer Date: Fri, 14 Aug 2026 14:14:22 +0200 Subject: [PATCH 1/2] fix: sanitise single-page docs and serve a Content-Security-Policy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The publishing action renders markdown with html:true and applied no sanitisation. The result is re-hosted with set:html on the knowledge base's own origin next to every other doc, and no CSP was set anywhere, so a \n'); + assert.doesNotMatch(html, /">\n'); + assert.doesNotMatch(html, /javascript:/i); + assert.doesNotMatch(html, /data:text\/html/i); + assert.match(html, /click/, 'link text is kept even though the href is dropped'); + }); + + check('strips inline \n\n

covered

\n'); + assert.doesNotMatch(html, /