Try to reduce false postivie of ia scanner

This commit is contained in:
Laurent Destailleur 2026-03-02 02:40:06 +01:00
parent 26c38c52f9
commit 115b1e27b0
2 changed files with 12 additions and 12 deletions

View file

@ -156,7 +156,7 @@ if (empty($reshook)) {
}
if (!$error) {
header('Location: ' . $_SERVER['PHP_SELF']);
header('Location: '.DOL_URL_ROOT.'/admin/expensereport_rules.php');
exit;
} else {
$action = '';
@ -170,7 +170,7 @@ if (empty($reshook)) {
dol_print_error($object->db);
}
header('Location: ' . $_SERVER['PHP_SELF']);
header('Location: ' . DOL_URL_ROOT.'/admin/expensereport_rules.php');
exit;
}

View file

@ -36,15 +36,6 @@
// Load Dolibarr environment
require_once '../main.inc.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/functions.lib.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php';
require_once DOL_DOCUMENT_ROOT . '/hrm/class/skill.class.php';
require_once DOL_DOCUMENT_ROOT . '/hrm/class/job.class.php';
require_once DOL_DOCUMENT_ROOT . '/hrm/class/evaluation.class.php';
require_once DOL_DOCUMENT_ROOT . '/hrm/class/position.class.php';
require_once DOL_DOCUMENT_ROOT . '/hrm/lib/hrm.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
@ -53,6 +44,15 @@ require_once DOL_DOCUMENT_ROOT . '/hrm/lib/hrm.lib.php';
* @var Translate $langs
* @var User $user
*/
require_once DOL_DOCUMENT_ROOT . '/core/lib/functions.lib.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php';
require_once DOL_DOCUMENT_ROOT . '/hrm/class/skill.class.php';
require_once DOL_DOCUMENT_ROOT . '/hrm/class/job.class.php';
require_once DOL_DOCUMENT_ROOT . '/hrm/class/evaluation.class.php';
require_once DOL_DOCUMENT_ROOT . '/hrm/class/position.class.php';
require_once DOL_DOCUMENT_ROOT . '/hrm/lib/hrm.lib.php';
$action = GETPOST('action');
// Load translation files required by the page
$langs->load('hrm');
@ -82,7 +82,7 @@ llxHeader('', $langs->trans('SkillComparison'), '', '', 0, 0, '', $css);
$head = array();
$h = 0;
$head[$h][0] = $_SERVER["PHP_SELF"];
$head[$h][0] = DOL_URL_ROOT.'/hrm/compare.php';
$head[$h][1] = $langs->trans("SkillComparison");
$head[$h][2] = 'compare';