From a59b59a82184e94436c6c1745e082d76154bc61f Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Mon, 19 Mar 2007 15:46:47 +0000 Subject: [PATCH] small redirect fix. ;) git-svn-id: file:///svn/phpbb/trunk@7209 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 7caaf7c7eb..31667358f3 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1699,7 +1699,14 @@ function redirect($url, $return = false) } else { - $url = generate_board_url() . '/' . str_replace('./', '', $url); + $url = str_replace('./', '', $url); + + if ($url && substr($url, -1, 1) == '/') + { + $url = substr($url, 0, -1); + } + + $url = generate_board_url() . '/' . $url; } } else