mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Change redirection logic to match the RFC better in those cases before redirect() is available to us
git-svn-id: file:///svn/phpbb/trunk@6154 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -537,8 +537,7 @@ class install_install extends module
|
||||
{
|
||||
// Someone's been silly and tried calling this page direct
|
||||
// So we send them back to the start to do it again properly
|
||||
header('Location: index.' . $phpEx . '?mode=install');
|
||||
exit;
|
||||
$this->p_master->redirect("index?mode=install");
|
||||
}
|
||||
|
||||
$s_hidden_fields = ($img_imagick) ? '<input type="hidden" name="img_imagick" value="' . addslashes($img_imagick) . '" />' : '';
|
||||
@@ -696,8 +695,7 @@ class install_install extends module
|
||||
{
|
||||
// Someone's been silly and tried calling this page direct
|
||||
// So we send them back to the start to do it again properly
|
||||
header('Location: index.' . $phpEx . '?mode=install');
|
||||
exit;
|
||||
$this->p_master->redirect("index?mode=install");
|
||||
}
|
||||
|
||||
$s_hidden_fields = ($img_imagick) ? '<input type="hidden" name="img_imagick" value="' . addslashes($img_imagick) . '" />' : '';
|
||||
@@ -841,8 +839,7 @@ class install_install extends module
|
||||
{
|
||||
// Someone's been silly and tried calling this page direct
|
||||
// So we send them back to the start to do it again properly
|
||||
header('Location: index.' . $phpEx . '?mode=install');
|
||||
exit;
|
||||
$this->p_master->redirect("index?mode=install");
|
||||
}
|
||||
|
||||
$s_hidden_fields = ($img_imagick) ? '<input type="hidden" name="img_imagick" value="' . addslashes($img_imagick) . '" />' : '';
|
||||
@@ -925,8 +922,7 @@ class install_install extends module
|
||||
{
|
||||
// Someone's been silly and tried calling this page direct
|
||||
// So we send them back to the start to do it again properly
|
||||
header('Location: index.' . $phpEx . '?mode=install');
|
||||
exit;
|
||||
$this->p_master->redirect("index?mode=install");
|
||||
}
|
||||
|
||||
$cookie_domain = ($server_name != '') ? $server_name : (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : getenv('SERVER_NAME');
|
||||
|
Reference in New Issue
Block a user