mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Fixed empty $_SERVER['SERVER_PROTOCOL'] in cron (#744)
This commit is contained in:
parent
916e40a2d3
commit
dd469f6bc0
2 changed files with 7 additions and 1 deletions
|
@ -353,7 +353,7 @@ $bb_cfg['show_sidebar1_on_every_page'] = false;
|
|||
$bb_cfg['show_sidebar2_on_every_page'] = false;
|
||||
|
||||
// Cookie
|
||||
$bb_cfg['cookie_domain'] = in_array($domain_name, [getenv('SERVER_ADDR'), 'localhost'], true) ? '' : ".$domain_name";
|
||||
$bb_cfg['cookie_domain'] = in_array($domain_name, [$_SERVER['SERVER_ADDR'], 'localhost'], true) ? '' : ".$domain_name";
|
||||
$bb_cfg['cookie_secure'] = $domain_ssl ? true : \TorrentPier\Helpers\IsHelper::isHTTPS();
|
||||
$bb_cfg['cookie_prefix'] = 'bb_'; // 'bb_'
|
||||
$bb_cfg['cookie_same_site'] = 'Lax'; // Lax, None, Strict | https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue