aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/auth/auth.php
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-08-24 21:34:23 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-08-24 21:34:37 -0400
commit310caec5d92d58453d1eee40e9b5a7f0157bd5ea (patch)
tree90099bf832f355a7e6f41810926010babb88c5b9 /phpBB/phpbb/auth/auth.php
parent76d1e7e111d4a12f50e3c4776b00a6681a83b295 (diff)
downloadforums-310caec5d92d58453d1eee40e9b5a7f0157bd5ea.tar
forums-310caec5d92d58453d1eee40e9b5a7f0157bd5ea.tar.gz
forums-310caec5d92d58453d1eee40e9b5a7f0157bd5ea.tar.bz2
forums-310caec5d92d58453d1eee40e9b5a7f0157bd5ea.tar.xz
forums-310caec5d92d58453d1eee40e9b5a7f0157bd5ea.zip
[feature/oauth] Fix redirects
PHPBB3-11673
Diffstat (limited to 'phpBB/phpbb/auth/auth.php')
-rw-r--r--phpBB/phpbb/auth/auth.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/phpBB/phpbb/auth/auth.php b/phpBB/phpbb/auth/auth.php
index 400f5fef6d..5093483d4a 100644
--- a/phpBB/phpbb/auth/auth.php
+++ b/phpBB/phpbb/auth/auth.php
@@ -975,12 +975,9 @@ class phpbb_auth
{
// If this status exists a fourth field is in the $login array called 'redirect_data'
// This data is passed along as GET data to the next page allow the account to be linked
- $url = 'ucp.php?mode=login_link';
- foreach ($login['redirect_data'] as $key => $value)
- {
- $url .= '&' . $key . '=' . $value;
- }
+ $params = array('mode' => 'login_link');
+ $url = append_sid('ucp.' . $phpEx, array_merge($params, $login['redirect_data']));
redirect($url);
}