mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Appears that the redirect in common.php didn't work on all setups we tried, so swapping it for some new code which does
git-svn-id: file:///svn/phpbb/trunk@6155 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
63dbf43693
commit
62230baffd
1 changed files with 3 additions and 3 deletions
|
@ -126,8 +126,8 @@ if (!defined('PHPBB_INSTALLED'))
|
||||||
|
|
||||||
// Replace backslashes and doubled slashes (could happen on some proxy setups)
|
// Replace backslashes and doubled slashes (could happen on some proxy setups)
|
||||||
$script_name = str_replace(array('\\', '//'), '/', $script_name);
|
$script_name = str_replace(array('\\', '//'), '/', $script_name);
|
||||||
$script_path = trim(dirname($script_name));
|
$script_path = trim(dirname($script_name)) . '/install/index.' . $phpEx;
|
||||||
$script_path = rtrim($script_patch, '/');
|
$script_path = str_replace('//', '/', $script_path);
|
||||||
|
|
||||||
$url = (($secure) ? 'https://' : 'http://') . $server_name;
|
$url = (($secure) ? 'https://' : 'http://') . $server_name;
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ if (!defined('PHPBB_INSTALLED'))
|
||||||
$url .= ':' . $server_port;
|
$url .= ':' . $server_port;
|
||||||
}
|
}
|
||||||
|
|
||||||
$url .= $script_path . '/install/index.' . $phpEx;
|
$url .= $script_path;
|
||||||
header('Location: ' . $url);
|
header('Location: ' . $url);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue