mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Minor error in redirect url creation
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3249 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e5988e7f2a
commit
61ad7c9017
1 changed files with 2 additions and 2 deletions
|
@ -694,8 +694,8 @@ function redirect($url)
|
|||
$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
|
||||
$server_name = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($board_config['server_name']));
|
||||
$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));
|
||||
$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')))
|
||||
|
|
Loading…
Add table
Reference in a new issue