mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-13 09:26:32 -04:00
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.