1
0
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:
Cameron 2013-06-01 02:53:06 -07:00
parent daa6e7ba1b
commit a187a9edf5

View File

@ -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);