diff options
author | Marc Alexander <admin@m-a-styles.de> | 2013-12-27 17:50:17 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2013-12-27 17:50:17 +0100 |
commit | a304d99b2b5d0b69548b81b013aa711838ff521d (patch) | |
tree | cc50ddda02995e432c96db849c8adc09a2dca33d /phpBB/includes/functions.php | |
parent | 9161816267ace60d9972e01b7fbe1213fe29a708 (diff) | |
download | forums-a304d99b2b5d0b69548b81b013aa711838ff521d.tar forums-a304d99b2b5d0b69548b81b013aa711838ff521d.tar.gz forums-a304d99b2b5d0b69548b81b013aa711838ff521d.tar.bz2 forums-a304d99b2b5d0b69548b81b013aa711838ff521d.tar.xz forums-a304d99b2b5d0b69548b81b013aa711838ff521d.zip |
[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
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 |