Files
wekan/tests
Lauri Ojansivu 6090be4dfd Fix GitHub CodeQL alert #588: remove template declarations to a fixed point.
js/incomplete-multi-character-sanitization in
tests/templatesAreRendered.test.cjs: the test removed template declarations
and Template.<name>.helpers/events/onCreated/onRendered/onDestroyed from the
source it scans with a single replace each, so removing one could splice its
neighbours into another (and CodeQL read the remains as a possible on...
attribute). Both removals now repeat until nothing changes, the fix used for
alerts #545 and #570-#582.

tests/tagStrippingFixedPoint.test.cjs keeps the shape out of the whole tree:
it now also finds a multi-character removal of an on<Capital> name outside a
fixed-point loop, and proves it catches alert #588's code and passes the
loop. The code is a test's source scan, never run on user input, so nothing
reaches Admin Panel -> Problems.

Thanks to GitHub CodeQL and xet7 !
2026-10-17 17:55:41 +03:00
..
…
2026-09-10 19:50:55 +03:00
…