aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-02-27 23:34:01 -0800
committerCesar G <prototech91@gmail.com>2014-04-22 15:21:02 -0700
commit5e0ab146d9f592c62661ccd495ce096701b8208d (patch)
tree9d24a6c5f36a53b6da6cd3a304eb1962a15772ba
parent47f8a6375f12d9ca18b88432a8d2e51d168909fe (diff)
downloadforums-5e0ab146d9f592c62661ccd495ce096701b8208d.tar
forums-5e0ab146d9f592c62661ccd495ce096701b8208d.tar.gz
forums-5e0ab146d9f592c62661ccd495ce096701b8208d.tar.bz2
forums-5e0ab146d9f592c62661ccd495ce096701b8208d.tar.xz
forums-5e0ab146d9f592c62661ccd495ce096701b8208d.zip
[ticket/11508] The question mark is expected even if there are no parameters.
PHPBB3-11508
-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 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) ? '?' : '');
}
/**