aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/auth/auth.php
diff options
context:
space:
mode:
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);
}