Skip to content
Snippets Groups Projects
Commit 4e9b714e authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: test if file is readable

parent ada04996
Branches
Tags
No related merge requests found
......@@ -467,7 +467,7 @@ function listOfSessions()
if (preg_match('/^sess_/i',$file) && $file != "." && $file != "..")
{
$fullpath = $sessPath.$file;
if(! @is_dir($fullpath))
if(! @is_dir($fullpath) && is_readable($fullpath))
{
$sessValues = file_get_contents($fullpath); // get raw session data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment