From 4e9b714ee60828259c44bec852adb89c3fb1a4aa Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 6 Nov 2009 15:21:13 +0000 Subject: [PATCH] Fix: test if file is readable --- htdocs/lib/admin.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/admin.lib.php b/htdocs/lib/admin.lib.php index afda9cb8ea3..354e9ce823f 100644 --- a/htdocs/lib/admin.lib.php +++ b/htdocs/lib/admin.lib.php @@ -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