Skip to content
Snippets Groups Projects
Commit 6fda68b6 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Limit sessions file scan to session files

parent 94be4c87
Branches
Tags
No related merge requests found
......@@ -456,7 +456,7 @@ function security_prepare_head()
function listOfSessions()
{
$arrayofSessions = array();
$sessPath = get_cfg_var("session.save_path").'/';
$sessPath = ini_get("session.save_path").'/';
dol_syslog('admin.lib:listOfSessions sessPath='.$sessPath);
$dh = @opendir($sessPath);
......@@ -491,8 +491,7 @@ function listOfSessions()
function purgeSessions($mysessionid)
{
$arrayofSessions = array();
$sessPath = get_cfg_var("session.save_path")."\\";
$sessPath = ini_get("session.save_path")."/";
dol_syslog('admin.lib:purgeSessions mysessionid='.$mysessionid.' sessPath='.$sessPath);
$error=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment