πŸ›‘οΈ

SQL Injection Fix β€” Diff Review

Parameterized statements replacing string concatenation

PR #482 fix: parameterize order & report queries by a.mehta

What changed

User-controlled values that were interpolated directly into SQL strings are now passed as bound parameters. The query text becomes a constant; the data travels through the driver's parameter channel, so it can never be parsed as SQL.

βˆ’ string concatenation + bound parameters ($1, $2, …) 2 files
Review verdict

  
Copied to clipboard