"fixed access to parent dir off session.save_path, which gives errors under open_basedir"

This commit is contained in:
Ralf Becker 2007-06-22 18:23:11 +00:00
parent fe58bfc0e3
commit bd30386440

View File

@ -223,7 +223,7 @@
while (($file = readdir($dir)))
{
if (filesize($path.'/'.$file) >= $max_session_size) continue;
if ($file{0} == '.' || filesize($path.'/'.$file) >= $max_session_size) continue;
if (substr($file,0,5) != 'sess_' || $session_cache[$file] === false)
{