mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 09:02:59 +01:00
Debug v18
This commit is contained in:
@@ -141,6 +141,10 @@ if (GETPOST('code')) { // We are coming from oauth provider page
|
||||
$backtourl = $_SESSION["backtourlsavedbeforeoauthjump"];
|
||||
unset($_SESSION["backtourlsavedbeforeoauthjump"]);
|
||||
|
||||
if (empty($backtourl)) {
|
||||
$backtourl = DOL_URL_ROOT.'/';
|
||||
}
|
||||
|
||||
header('Location: '.$backtourl);
|
||||
exit();
|
||||
} catch (Exception $e) {
|
||||
@@ -162,6 +166,10 @@ if (GETPOST('code')) { // We are coming from oauth provider page
|
||||
$url = 'https://connect.stripe.com/oauth/authorize?response_type=code&client_id='.$conf->global->$keyforparamid.'&scope=read_write';
|
||||
}
|
||||
|
||||
if (empty($url)) {
|
||||
$url = DOL_URL_ROOT.'/';
|
||||
}
|
||||
|
||||
// we go on oauth provider authorization page
|
||||
header('Location: '.$url);
|
||||
exit();
|
||||
|
||||
Reference in New Issue
Block a user