Repository navigation
Commit af4235d
test(csp): case-insensitive tag regex to satisfy CodeQL js/py-bad-tag-filter
The CSP test scanned the framework's own (always-lowercase) inline tags with a
case-sensitive regex; CodeQL's bad-HTML-filter rule flagged it as not matching
<SCRIPT>. The scan is a test assertion over the framework's own output, not a
sanitiser over untrusted input, so it was a false positive in context - but the
case-insensitive flag is strictly better and clears the CodeQL gate. php already
used /i; python/ruby/node now match.
Signed-off-by: Andre van Zuydam <andrevanzuydam@gmail.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Tina4 <82961293+tina4stack@users.noreply.github.com>1 parent f89d9a5 commit af4235d
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments