aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/auth/provider/oauth/oauth.php
diff options
context:
space:
mode:
author3D-I <marktravai@gmail.com>2019-05-16 21:53:20 +0200
committer3D-I <marktravai@gmail.com>2019-05-16 21:53:43 +0200
commit72be8e08705fa103adc6482af9712077cdceb8cc (patch)
treecbf7394633ffb2712bd51fd084185c242aec7dc8 /phpBB/phpbb/auth/provider/oauth/oauth.php
parent61bdccbfd804c6638e977d250f6e9a0f30aa5f98 (diff)
downloadforums-72be8e08705fa103adc6482af9712077cdceb8cc.tar
forums-72be8e08705fa103adc6482af9712077cdceb8cc.tar.gz
forums-72be8e08705fa103adc6482af9712077cdceb8cc.tar.bz2
forums-72be8e08705fa103adc6482af9712077cdceb8cc.tar.xz
forums-72be8e08705fa103adc6482af9712077cdceb8cc.zip
[ticket/16055] Fix Oauth's redirects
Via forum, memberlist, topic or post etc.. PHPBB3-16055
Diffstat (limited to 'phpBB/phpbb/auth/provider/oauth/oauth.php')
-rw-r--r--phpBB/phpbb/auth/provider/oauth/oauth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/oauth.php b/phpBB/phpbb/auth/provider/oauth/oauth.php
index 93419d2915..5e8cb3dea8 100644
--- a/phpBB/phpbb/auth/provider/oauth/oauth.php
+++ b/phpBB/phpbb/auth/provider/oauth/oauth.php
@@ -423,7 +423,7 @@ class oauth extends \phpbb\auth\provider\base
if ($credentials['key'] && $credentials['secret'])
{
$actual_name = str_replace('auth.provider.oauth.service.', '', $service_name);
- $redirect_url = build_url(false) . '&login=external&oauth_service=' . $actual_name;
+ $redirect_url = generate_board_url() . '/ucp.' . $this->php_ext . '?mode=login&login=external&oauth_service=' . $actual_name;
$login_data['BLOCK_VARS'][$service_name] = array(
'REDIRECT_URL' => redirect($redirect_url, true),
'SERVICE_NAME' => $this->user->lang['AUTH_PROVIDER_OAUTH_SERVICE_' . strtoupper($actual_name)],