mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11997] Remove obsolete failover_flag in function redirect()
This flag is no longer needed as the failover is no longer needed. PHPBB3-11997
This commit is contained in:
parent
27ae58713b
commit
68db335468
1 changed files with 42 additions and 47 deletions
|
@ -2647,8 +2647,6 @@ function redirect($url, $return = false, $disable_cd_check = false)
|
||||||
{
|
{
|
||||||
global $db, $cache, $config, $user, $phpbb_root_path, $phpbb_filesystem, $phpbb_path_helper;
|
global $db, $cache, $config, $user, $phpbb_root_path, $phpbb_filesystem, $phpbb_path_helper;
|
||||||
|
|
||||||
$failover_flag = false;
|
|
||||||
|
|
||||||
if (empty($user->lang))
|
if (empty($user->lang))
|
||||||
{
|
{
|
||||||
$user->add_lang('common');
|
$user->add_lang('common');
|
||||||
|
@ -2698,8 +2696,6 @@ function redirect($url, $return = false, $disable_cd_check = false)
|
||||||
// Relative uri
|
// Relative uri
|
||||||
$pathinfo = pathinfo($url);
|
$pathinfo = pathinfo($url);
|
||||||
|
|
||||||
if (!$failover_flag)
|
|
||||||
{
|
|
||||||
// Is the uri pointing to the current directory?
|
// Is the uri pointing to the current directory?
|
||||||
if ($pathinfo['dirname'] == '.')
|
if ($pathinfo['dirname'] == '.')
|
||||||
{
|
{
|
||||||
|
@ -2749,7 +2745,6 @@ function redirect($url, $return = false, $disable_cd_check = false)
|
||||||
$url = generate_board_url() . '/' . $url;
|
$url = generate_board_url() . '/' . $url;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Make sure no linebreaks are there... to prevent http response splitting for PHP < 4.4.2
|
// Make sure no linebreaks are there... to prevent http response splitting for PHP < 4.4.2
|
||||||
if (strpos(urldecode($url), "\n") !== false || strpos(urldecode($url), "\r") !== false || strpos($url, ';') !== false)
|
if (strpos(urldecode($url), "\n") !== false || strpos(urldecode($url), "\r") !== false || strpos($url, ';') !== false)
|
||||||
|
|
Loading…
Add table
Reference in a new issue