repair security issue

When reassing value to the $socid  in line 68 clean the filter set by $user->socid
This commit is contained in:
Randall Mora 2023-01-20 09:12:58 -06:00 committed by GitHub
parent 0721c8b5d8
commit 343922210c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ $max = $conf->global->MAIN_SIZE_SHORTLIST_LIMIT;
$now = dol_now();
// Security check
$socid = GETPOST("socid", 'int');
//$socid = GETPOST("socid", 'int');
if ($user->socid > 0) {
$action = '';
$id = $user->socid;