Fix CSRF = 3 for cancel and clone

This commit is contained in:
Laurent Destailleur
2024-06-25 12:24:25 +02:00
parent 028e5fd1d3
commit 4374ecebad
4 changed files with 5 additions and 5 deletions

View File

@@ -3089,7 +3089,7 @@ if ($action == 'create' && $usercancreate) {
// Clone
if ($usercancreate) {
print dolGetButtonAction('', $langs->trans('ToClone'), 'default', $_SERVER["PHP_SELF"].'?action=clone&token='.newToken().'&id='.$object->id.'&socid='.$object->socid, '');
print dolGetButtonAction('', $langs->trans('ToClone'), 'default', $_SERVER["PHP_SELF"].'?action=clone&token='.newToken().'&id='.$object->id.'&socid='.$object->socid, '');
}
// Cancel order