diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fd94292..731faf3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,9 @@ - Make user_newpasswd lenght configurable [\#126](https://github.com/torrentpier/torrentpier-lts/pull/126) ([belomaxorka](https://github.com/belomaxorka)) - Make password lenght configurable [\#127](https://github.com/torrentpier/torrentpier-lts/pull/127) ([belomaxorka](https://github.com/belomaxorka)) - Increase mysql types limits [\#128](https://github.com/torrentpier/torrentpier-lts/pull/128) ([belomaxorka](https://github.com/belomaxorka)) +- Added installed extensions check [\#129](https://github.com/torrentpier/torrentpier-lts/pull/129) ([belomaxorka](https://github.com/belomaxorka)) +- Make sql log file name configurable [\#130](https://github.com/torrentpier/torrentpier-lts/pull/130) ([belomaxorka](https://github.com/belomaxorka)) +- Enhanced https check [\#131](https://github.com/torrentpier/torrentpier-lts/pull/131) ([belomaxorka](https://github.com/belomaxorka)) - Minor fixes [\#124](https://github.com/torrentpier/torrentpier-lts/pull/124) ([belomaxorka](https://github.com/belomaxorka)) ## [v2.1.5-2023.03](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.03) (2023-04-04) diff --git a/library/config.php b/library/config.php index 35b0b50c..4b2d247f 100644 --- a/library/config.php +++ b/library/config.php @@ -333,7 +333,7 @@ $page_cfg['show_sidebar2'] = array( // Cookie $bb_cfg['cookie_domain'] = in_array($domain_name, array(getenv('SERVER_ADDR'), 'localhost')) ? '' : ".$domain_name"; -$bb_cfg['cookie_secure'] = (!empty($_SERVER['HTTPS']) ? 1 : 0); +$bb_cfg['cookie_secure'] = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443; $bb_cfg['cookie_prefix'] = 'bb_'; // 'bb_' // Sessions