mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
If session_save_path() returns '', use sys_get_temp_dir()
resolves #8994
This commit is contained in:
parent
1daecbbca0
commit
9cd7765d9e
@ -77,7 +77,7 @@ class PhpSession extends Session
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$sessionSavePath = session_save_path();
|
$sessionSavePath = session_save_path() ?: sys_get_temp_dir();
|
||||||
if (session_module_name() === 'files' && !is_writable($sessionSavePath)) {
|
if (session_module_name() === 'files' && !is_writable($sessionSavePath)) {
|
||||||
throw new ConfigurationError("Can't save session, path '$sessionSavePath' is not writable.");
|
throw new ConfigurationError("Can't save session, path '$sessionSavePath' is not writable.");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user