From 6258a4596da3d23fc43ef78faee674e4581213be Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 25 Oct 2009 11:09:03 +0000 Subject: [PATCH] Fix: bad delimiter --- htdocs/lib/admin.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/lib/admin.lib.php b/htdocs/lib/admin.lib.php index 9bcbbacc25b..56b48160a77 100644 --- a/htdocs/lib/admin.lib.php +++ b/htdocs/lib/admin.lib.php @@ -470,10 +470,10 @@ function listOfSessions() if(! @is_dir($fullpath)) { $sessValues = file_get_contents($fullpath); // get raw session data - + if (preg_match('/dol_login/i',$sessValues) && // limit to dolibarr session - preg_match('/dol_entity\|s:([0-9]+):"(/i'.$conf->entity.')"',$sessValues) && // limit to current entity - preg_match('/dol_company\|s:([0-9]+):"(/i'.$conf->global->MAIN_INFO_SOCIETE_NOM.')"',$sessValues)) // limit to company name + preg_match('/dol_entity\|s:([0-9]+):"('.$conf->entity.')"/i',$sessValues) && // limit to current entity + preg_match('/dol_company\|s:([0-9]+):"('.$conf->global->MAIN_INFO_SOCIETE_NOM.')"/i',$sessValues)) // limit to company name { $tmp=explode('_', $file); $idsess=$tmp[1];