Merge pull request #23645 from randallmoraes/patch-9

repair security issue
This commit is contained in:
Laurent Destailleur 2023-01-23 01:52:08 +01:00 committed by GitHub
commit 03c26adca2
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;