Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/services/utilServices/Sanitizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ DOMPurify.setConfig({
"marginwidth",
"target",
"async",
"referrerpolicy",
Copy link

Copilot AI Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The addition of referrerpolicy to the allowed attributes list lacks test coverage. Consider adding a test case that verifies YouTube embeds with the referrerpolicy attribute are properly sanitized and the attribute is preserved. Other services in the same directory (e.g., RateLimiter.spec.ts, MailClient.spec.ts) have test coverage in the __tests__ directory.

Copilot uses AI. Check for mistakes.
],
// required in case <script> tag appears as the first line of the markdown
FORCE_BODY: true,
Expand Down
Loading