mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Don't enable secure cookies when they won't work (#9971)
* Ignore session.cookie_secure errors They happen if the session is already started. * Don't allow secure cookies to be enabled when not accessing via https * Completely remove the setting
This commit is contained in:
@@ -442,10 +442,6 @@ class Config
|
||||
self::set('email_from', '"' . self::get('project_name') . '" <' . self::get('email_user') . '@' . php_uname('n') . '>');
|
||||
}
|
||||
|
||||
if (self::get('secure_cookies')) {
|
||||
ini_set('session.cookie_secure', 1);
|
||||
}
|
||||
|
||||
// If we're on SSL, let's properly detect it
|
||||
if (isset($_SERVER['HTTPS'])) {
|
||||
self::set('base_url', preg_replace('/^http:/', 'https:', self::get('base_url')));
|
||||
|
Reference in New Issue
Block a user