From 4306d4d083d50e9ef7ed01260aa95ea4ac453dee Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 8 Jun 2006 10:59:36 +0000 Subject: - fix some smaller bugs - removed custom profiles preview field from acp git-svn-id: file:///svn/phpbb/trunk@6022 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'phpBB/includes/functions.php') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index a9e3a59673..143fc3fd79 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1237,6 +1237,12 @@ function build_url($strip_vars = false) $redirect = (($user->page['page_dir']) ? $user->page['page_dir'] . '/' : '') . $user->page['page_name'] . (($user->page['query_string']) ? "?{$user->page['query_string']}" : ''); $redirect = append_sid($redirect, false, false); + // Add delimiter if not there... + if (strpos($redirect, '?') === false) + { + $redirect .= '?'; + } + // Strip vars... if ($strip_vars !== false && strpos($redirect, '?') !== false) { -- cgit v1.2.1