aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2008-09-05 19:09:52 +0000
committerChris Smith <toonarmy@phpbb.com>2008-09-05 19:09:52 +0000
commite5162e7496c2ae9ef5e5a874dab8e0a0409f3d74 (patch)
tree3c0caca5f304bcdbc0d31b5b60de16790e373cfd /phpBB/includes/functions.php
parentf1830947c21cf91f9b81150e32195e76c16094dd (diff)
downloadforums-e5162e7496c2ae9ef5e5a874dab8e0a0409f3d74.tar
forums-e5162e7496c2ae9ef5e5a874dab8e0a0409f3d74.tar.gz
forums-e5162e7496c2ae9ef5e5a874dab8e0a0409f3d74.tar.bz2
forums-e5162e7496c2ae9ef5e5a874dab8e0a0409f3d74.tar.xz
forums-e5162e7496c2ae9ef5e5a874dab8e0a0409f3d74.zip
Extra slash is included in the redirect url when redirecting to the forum root directory. Closes #33605
Fix small mistake in CHANGELOG git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8832 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index e96583f75f..a68ada3540 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2044,7 +2044,7 @@ function redirect($url, $return = false, $disable_cd_check = false)
$url = substr($url, 1);
}
- $url = $dir . '/' . $url;
+ $url = (!empty($dir) ? $dir . '/' : '') . $url;
$url = generate_board_url() . '/' . $url;
}
}