The markdown package rendered "- [ ] Task" as a disabled checkbox, but its
"only a task checkbox" rule sat in a HOOKS config key that DOMPurify does
not have, so it never ran. The card viewer then sanitized the output again
with a config forbidding every input, so no checkbox reached the page, and
forms.css hides bare checkboxes app-wide anyway. Both sanitizer passes now
install a real afterSanitizeAttributes hook for the call that keeps only a
disabled checkbox and removes every other input, and the viewer shows it.
The dead HOOKS keys are removed from all three sanitizer configs.
Refs #2419.
Thanks to rodrigocipriani and xet7 !
New optional security feature under Admin Panel / Features / Security. When
enabled, all links -- both markdown links like [label](url) and raw HTML
<a href> tags -- are always shown as plain, non-clickable text in every rich
text field (board and card titles, descriptions, comments, checklists, etc.),
so a link can never be clicked and cannot present misleading anchor text.
This is a hardening option on top of the existing XSS sanitization (which
already strips javascript:/data: schemes, event-handler attributes and
dangerous tags); it addresses #6453, where a board title rendered as a
clickable link. Default off, so links stay clickable.
Implementation:
- New global setting renderLinksAsPlainText (models/settings.js), published in
the public setting publication.
- Admin Panel / Features gains a Security category with a materialCheckBox
toggle that saves the setting immediately.
- The shared DOMPurify sanitizer takes a { stripLinks } option that forbids the
<a> tag while keeping its inner text (KEEP_CONTENT), so links collapse to
plain text. The rich text viewer (mentions helper in editor.js) passes
stripLinks based on the setting, gated reactively so toggling re-renders.