Code comment
This commit is contained in:
parent
ad2625f842
commit
d02ec266d4
@ -526,12 +526,13 @@ if ((!defined('NOCSRFCHECK') && empty($dolibarr_nocsrfcheck) && getDolGlobalInt(
|
||||
$arrayofactiontoforcetokencheck = array(
|
||||
'activate',
|
||||
'doprev', 'donext', 'dvprev', 'dvnext',
|
||||
'install',
|
||||
'freezone', 'install',
|
||||
'reopen'
|
||||
);
|
||||
if (in_array(GETPOST('action', 'aZ09'), $arrayofactiontoforcetokencheck)) {
|
||||
$sensitiveget = true;
|
||||
}
|
||||
// We also match for value with just a simple string that must match
|
||||
if (preg_match('/^(add|classify|close|confirm|copy|del|disable|enable|remove|set|unset|update|save)/', GETPOST('action', 'aZ09'))) {
|
||||
$sensitiveget = true;
|
||||
}
|
||||
|
||||
@ -50,11 +50,8 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php';
|
||||
|
||||
|
||||
$hookmanager->initHooks(array('takeposinvoice'));
|
||||
|
||||
global $mysoc;
|
||||
|
||||
$langs->loadLangs(array("companies", "commercial", "bills", "cashdesk", "stocks", "banks"));
|
||||
|
||||
$id = GETPOST('id', 'int');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user