aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions.php9
1 files changed, 8 insertions, 1 deletions
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