diff --git a/htdocs/core/lib/date.lib.php b/htdocs/core/lib/date.lib.php index d6618e52839..d4f29f1dfcc 100644 --- a/htdocs/core/lib/date.lib.php +++ b/htdocs/core/lib/date.lib.php @@ -504,7 +504,7 @@ function dol_get_last_day($year, $month = 12, $gm = false) /** Return GMT time for last hour of a given GMT date (it removes hours, min and second part) * - * @param int $dat + * @param int $date * @return int Date for last hour of a given date */ function dol_get_last_hour($date) @@ -515,7 +515,7 @@ function dol_get_last_hour($date) /** Return GMT time for first hour of a given GMT date (it removes hours, min and second part) * - * @param int $dat + * @param int $date * @return int Date for last hour of a given date */ function dol_get_first_hour($date) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 2ae8c11d658..be379afd441 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -381,8 +381,7 @@ if ((!defined('NOCSRFCHECK') && empty($dolibarr_nocsrfcheck) && !empty($conf->gl setEventMessages('SecurityTokenHasExpiredSoActionHasBeenCanceledPleaseRetry', null, 'warnings'); //if ($conf->global->MAIN_FEATURES_LEVEL >= 1) setEventMessages('Unset POST and GET params by CSRF protection in main.inc.php (Token provided was not generated by the previous page).'."
\n".'$_SERVER[REQUEST_URI] = '.$_SERVER['REQUEST_URI'].' $_SERVER[REQUEST_METHOD] = '.$_SERVER['REQUEST_METHOD'].' GETPOST(token) = '.GETPOST('token', 'alpha').' $_SESSION[token] = '.$_SESSION['token'], null, 'warnings'); $savid = ((int) $_POST['id']); - //$savaction = preg_replace('/[^a-zA-Z0-9]/', '', $_POST['action']); - unset ($_POST); + unset($_POST); //unset($_POST['action']); unset($_POST['confirm']); unset($_GET['confirm']);