mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix phpunit
This commit is contained in:
parent
6c06d2f0aa
commit
fea6fca7d1
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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).'."<br>\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']);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user