mirror of
https://github.com/e107inc/e107.git
synced 2025-01-29 10:38:08 +01:00
Issue #368 - added a message to the PHPInfo page if session save path is not writable.
This commit is contained in:
parent
daa6e7ba1b
commit
a187a9edf5
@ -56,6 +56,14 @@ $security_risks = array(
|
||||
$mes->addWarning("<b>".$risk."</b>: ".$diz);
|
||||
}
|
||||
}
|
||||
|
||||
if($sessionSavePath = ini_get('session.save_path'))
|
||||
{
|
||||
if(!is_writable($sessionSavePath))
|
||||
{
|
||||
$mes->addError("<b>session.save_path</b> is not writable! That can cause major issues with your site.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// $phpinfo = preg_replace("#^.*<body>#is", "", $phpinfo);
|
||||
|
Loading…
x
Reference in New Issue
Block a user