diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index c9dd532141..beb4c87b04 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -693,20 +693,20 @@ function redirect($url) $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; $server_name = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($board_config['server_name'])); - $script_name = preg_replace('/^\/?(.*?)\/?$/', '/\1', trim($board_config['script_path'])); $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) . '/' : '/'; + $script_name = preg_replace('/^\/?(.*?)\/?$/', '/\1', trim($board_config['script_path'])); $url = preg_replace('/^\/?(.*?\/)?$/', '\1', trim($url)); // Redirect via an HTML form for PITA webservers if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) { - header('Refresh: 0; URL=' . $server_protocol . $server_name . $script_name . $server_port . $url); - echo '