mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-06-21 12:09:31 -04:00
- API (database.php.default): only set the PDO verify flag when SSL is actually configured (ZM_DB_SSL_CA_CERT set), matching the web/Perl/C++ layers. Previously a fresh install's default (1) would set the flag on a non-SSL connection, since the CakePHP datasource merges 'flags' uncondi- tionally. - Both PHP layers: cast to string and trim before parsing the value, and use strict in_array, to avoid type-juggling and stray-whitespace edge cases. - zm_db.cpp: use my_bool (not char) for the MYSQL_OPT_SSL_VERIFY_SERVER_CERT fallback argument, the type libmysqlclient expects. That branch only compiles on older clients without MYSQL_OPT_SSL_MODE, where my_bool exists. refs #3816