forked from Wavyzz/dolibarr
Clean use of $_POST
This commit is contained in:
@@ -233,7 +233,7 @@ class mailing_fraise extends MailingTargets
|
||||
public function add_to_target($mailing_id)
|
||||
{
|
||||
// phpcs:enable
|
||||
global $conf, $langs, $_POST;
|
||||
global $conf, $langs;
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("members", "companies"));
|
||||
|
||||
@@ -161,22 +161,8 @@ if (!GETPOST('code')) {
|
||||
$_SESSION['oauthstateanticsrf'] = $state;
|
||||
|
||||
// Save more data into session
|
||||
// Not required. All data are saved into $_SESSION['datafromloginform'] when form is posted with a click on Login with
|
||||
// Google with param actionlogin=login and beforeoauthloginredirect=google, by the functions_googleoauth.php.
|
||||
/*
|
||||
if (!empty($_POST["tz"])) {
|
||||
$_SESSION["tz"] = $_POST["tz"];
|
||||
}
|
||||
if (!empty($_POST["tz_string"])) {
|
||||
$_SESSION["tz_string"] = $_POST["tz_string"];
|
||||
}
|
||||
if (!empty($_POST["dst_first"])) {
|
||||
$_SESSION["dst_first"] = $_POST["dst_first"];
|
||||
}
|
||||
if (!empty($_POST["dst_second"])) {
|
||||
$_SESSION["dst_second"] = $_POST["dst_second"];
|
||||
}
|
||||
*/
|
||||
// No need to save more data in sessions. We have several info into $_SESSION['datafromloginform'], saved when form is posted with a click
|
||||
// on "Login with Google" with param actionlogin=login and beforeoauthloginredirect=google, by the functions_googleoauth.php.
|
||||
|
||||
if ($forlogin) {
|
||||
$apiService->setApprouvalPrompt('force');
|
||||
|
||||
Reference in New Issue
Block a user