mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/11997] Add remove_web_root_path() in order to prevent incorrect URLs
Adding a call to this method to the redirect function will make sure that we do not end up with incorrect URLs after using append_sid(). PHPBB3-11997
This commit is contained in:
@@ -2708,7 +2708,7 @@ function redirect($url, $return = false, $disable_cd_check = false)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = generate_board_url() . '/' . $url;
|
$url = generate_board_url() . '/' . $phpbb_path_helper->remove_web_root_path($url);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clean URL and check if we go outside the forum directory
|
// Clean URL and check if we go outside the forum directory
|
||||||
|
Reference in New Issue
Block a user