Repository navigation
Commit fce92b0
committed
fix(cursor-zoom-follow): rebuild accent as rgb() from parsed digits
The previous fix (127a3eb) validated accent with a regex but still
returned the original string on match, so CodeQL's taint tracking kept
following the source value through the guard -- the alert stayed open at
the fixed head. color() now parses the hex digits and reassembles an
rgb(r,g,b) string from three parseInt() results; no substring of the
input string ever reaches the style sink, only numbers it derived from it.1 parent 4d9aea9 commit fce92b0
2 files changed
Lines changed: 12 additions & 6 deletions
File tree
- docs/public/catalog/components
- registry/components/cursor-zoom-follow
0 commit comments