Error on function purgeSessions() at admin.lib.php
Error on function purgeSessions() incorrect evaluation of dol_entity so never purge sessions
This commit is contained in:
parent
3b056d826b
commit
cd2f211652
1 changed files with 1 additions and 1 deletions
|
|
@ -1087,7 +1087,7 @@ function purgeSessions($mysessionid)
|
|||
$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]+):"('.$conf->entity.')"/i', $sessValues) && // limit to current entity
|
||||
(preg_match('/dol_entity\|i:('.$conf->entity.')/', $sessValues) || preg_match('/dol_entity\|s:([0-9]+):"('.$conf->entity.')"/i', $sessValues)) && // limit to current entity
|
||||
preg_match('/dol_company\|s:([0-9]+):"(' . getDolGlobalString('MAIN_INFO_SOCIETE_NOM').')"/i', $sessValues)) { // limit to company name
|
||||
$tmp = explode('_', $file);
|
||||
$idsess = $tmp[1];
|
||||
|
|
|
|||
Loading…
Reference in a new issue