Skip to content

Commit fce92b0

Browse files
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

0 commit comments

Comments
 (0)