mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
- client/lib/tests/renderLinksPlainText.tests.js: the 'render links as plain text' toggle and XSS hardening. Config assertions (stripLinks adds <a> to FORBID_TAGS, default does not, KEEP_CONTENT) plus real sanitizeHTML() behavior: <a> stripped to its text when stripLinks, kept by default, and javascript: hrefs / event handlers / <script> removed regardless. - client/lib/tests/alwaysShowCodeAsText.tests.js: escapeHtmlSource (exposed on the Markdown export) escapes <script>/comments/quotes/ampersand-first so code is shown not executed; leaves plain text and empty strings unchanged. - server/lib/tests/impersonationReportQuery.tests.js: the Impersonation report search selector (extracted to models/lib/impersonationReportQuery.js so it is testable without re-registering the publication) builds a case-insensitive $or across the identity fields, escapes regex metacharacters, and is empty for a blank term. The MimeBleed fix (fileValidationBypass.security.tests.js), SortBleed (boards.security.tests.js) and import/export anonymization (importExportSecurity.tests.js) already carry positive + negative tests.