Files
zoneminder/scripts/ZoneMinder/lib/ZoneMinder
Isaac Connor f09d77ae89 fix: log bind params correctly when SQL contains literal % characters
zmDbDo built log messages by s/\?/'%s'/g on the SQL and then passing
the result to sprintf with the bind values. Any literal % in the SQL
(LIKE '%foo%' patterns, or the disk-percent substitution used by
dynamic filters) was interpreted as a sprintf format spec, producing
garbage output or an uncaught sprintf error.

Replace the two-step approach with a single regex that substitutes
bind values directly, so literal % in the SQL is preserved verbatim.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 15:34:44 -04:00
..
2023-08-27 02:00:59 +02:00
2018-09-07 16:29:59 -04:00
2025-11-06 21:26:08 -05:00
2018-11-06 20:37:00 -05:00
2024-03-21 10:34:54 -04:00
2022-01-27 13:42:46 -05:00
2026-01-14 09:46:31 -05:00