Commit ea3e925
committed
fix: sanitize threshold values in complexity SQL queries
Coerce threshold warn values through Number() and guard with isNaN
before interpolating into SQL HAVING clauses, preventing malformed
queries when non-numeric values are provided in config.
Impact: 1 functions changed, 4 affected1 parent 0337318 commit ea3e925
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
| 393 | + | |
393 | 394 | | |
394 | 395 | | |
395 | | - | |
| 396 | + | |
| 397 | + | |
396 | 398 | | |
397 | 399 | | |
398 | | - | |
| 400 | + | |
| 401 | + | |
399 | 402 | | |
400 | 403 | | |
401 | 404 | | |
| |||
0 commit comments