2
0
forked from Wavyzz/dolibarr

Fix: test if file is readable

This commit is contained in:
Regis Houssin
2009-11-06 15:21:13 +00:00
parent ada04996d1
commit 4e9b714ee6

View File

@@ -467,7 +467,7 @@ function listOfSessions()
if (preg_match('/^sess_/i',$file) && $file != "." && $file != "..") if (preg_match('/^sess_/i',$file) && $file != "." && $file != "..")
{ {
$fullpath = $sessPath.$file; $fullpath = $sessPath.$file;
if(! @is_dir($fullpath)) if(! @is_dir($fullpath) && is_readable($fullpath))
{ {
$sessValues = file_get_contents($fullpath); // get raw session data $sessValues = file_get_contents($fullpath); // get raw session data