From a304d99b2b5d0b69548b81b013aa711838ff521d Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 27 Dec 2013 17:50:17 +0100 Subject: [PATCH] [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 --- phpBB/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 33d0e36a28..bd6a45685d 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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