aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-03-10 10:48:19 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-03-10 12:35:30 +0100
commite8fdc1545a54e87541efa404265abbd16dc31ead (patch)
tree2b87993674e5c5a116a82e1c1241008da4fc145d /phpBB
parentb876c073776a5b11c08e5f71bf12bc06fd5195d8 (diff)
downloadforums-e8fdc1545a54e87541efa404265abbd16dc31ead.tar
forums-e8fdc1545a54e87541efa404265abbd16dc31ead.tar.gz
forums-e8fdc1545a54e87541efa404265abbd16dc31ead.tar.bz2
forums-e8fdc1545a54e87541efa404265abbd16dc31ead.tar.xz
forums-e8fdc1545a54e87541efa404265abbd16dc31ead.zip
[ticket/12261] Add a functional test for redirect after using login_box()
PHPBB3-12261
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 96b4161958..11d7ea4c72 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -4899,8 +4899,6 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
$hidden_fields_for_jumpbox = phpbb_build_hidden_fields_for_query_params($request, array('f'));
$notification_mark_hash = generate_link_hash('mark_all_notifications_read');
- $redirect_url = $phpbb_path_helper->remove_web_root_path(build_url());
-
// The following assigns all _common_ variables that may be used at any point in a template.
$template->assign_vars(array(
'SITENAME' => $config['sitename'],
@@ -4985,7 +4983,7 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
'S_TOPIC_ID' => $topic_id,
'S_LOGIN_ACTION' => ((!defined('ADMIN_START')) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login') : append_sid("{$phpbb_admin_path}index.$phpEx", false, true, $user->session_id)),
- 'S_LOGIN_REDIRECT' => build_hidden_fields(array('redirect' => $redirect_url)),
+ 'S_LOGIN_REDIRECT' => build_hidden_fields(array('redirect' => $phpbb_path_helper->remove_web_root_path(build_url()))),
'S_ENABLE_FEEDS' => ($config['feed_enable']) ? true : false,
'S_ENABLE_FEEDS_OVERALL' => ($config['feed_overall']) ? true : false,