1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-04 15:57:45 +02:00

Redirect and SID updates ... add SID by default to all new sessions as they are created

git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3203 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2002-12-18 01:06:19 +00:00
parent eda0907757
commit f78e9d03b7
2 changed files with 5 additions and 4 deletions

View File

@@ -699,7 +699,7 @@ function redirect($url)
$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']) . '/' : '/';
$url = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($url));
$url = preg_replace('/^\/?(.*?\/)?$/', '\1', trim($url));
// If redirects don't work for you, first make sure you've entered your server (domain) name,
// script path, protocol (insecure (http://) or secure (https://) cookie) and port
@@ -712,6 +712,7 @@ function redirect($url)
{
header('HTTP/1.0 302 Redirect');
}
header('Location: ' . $server_protocol . $server_name . $script_name . $server_port . $url);
exit;
}