Only check the session save path is writable if the session handler is 'files'

fixes #8053

Signed-off-by: Eric Lippmann <eric.lippmann@netways.de>
This commit is contained in:
Boden Garman 2014-12-15 13:24:18 +11:00 committed by Eric Lippmann
parent 7f5ba135ee
commit 5e40ce2088
1 changed files with 3 additions and 2 deletions

5
library/Icinga/Web/Session/PhpSession.php Normal file → Executable file
View File

@ -78,8 +78,9 @@ class PhpSession extends Session
}
}
if (!is_writable(session_save_path())) {
throw new ConfigurationError('Can\'t save session');
$sessionSavePath = session_save_path();
if (session_module_name() === 'files' && !is_writable($sessionSavePath)) {
throw new ConfigurationError("Can't save session, path '$sessionSavePath' is not writable.");
}
if ($this->exists()) {