mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-26 01:58:42 -04:00
Fix broken SQL injection fix - use havingLike() instead of having() with named params
The previous SQL injection fix (GHSA-hmjv-wm3j-pfhw) used named parameter syntax :search: with having(), but CodeIgniter 4's having() method does not support named parameters. This caused the query to fail. The fix uses havingLike() which properly: - Escapes the search value to prevent SQL injection - Handles the LIKE clause construction internally (wraps value with %) - Works correctly with HAVING clauses for aggregated columns This maintains the security fix while actually working on CI4.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f