From 5e0ab146d9f592c62661ccd495ce096701b8208d Mon Sep 17 00:00:00 2001 From: Cesar G Date: Thu, 27 Feb 2014 23:34:01 -0800 Subject: [PATCH] [ticket/11508] The question mark is expected even if there are no parameters. PHPBB3-11508 --- phpBB/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 2062cd062c..17cc109432 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2376,7 +2376,7 @@ function build_url($strip_vars = false) $redirect = $path_helper->strip_url_params($redirect, $strip_vars, false); } - return $redirect; + return $redirect . ((strpos($redirect, '?') === false) ? '?' : ''); } /**