aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2010-08-08 16:14:05 +0100
committerChris Smith <toonarmy@phpbb.com>2010-08-08 16:14:05 +0100
commit013f0b62b8094ac537dc5aa025d82d9cb59250f1 (patch)
tree28daf5a5fcad77a3a150ce357decada2c3bc7c1a /phpBB/includes/functions.php
parente1328e87ce23245dbd55a08fbaf3d48e957a6777 (diff)
downloadforums-013f0b62b8094ac537dc5aa025d82d9cb59250f1.tar
forums-013f0b62b8094ac537dc5aa025d82d9cb59250f1.tar.gz
forums-013f0b62b8094ac537dc5aa025d82d9cb59250f1.tar.bz2
forums-013f0b62b8094ac537dc5aa025d82d9cb59250f1.tar.xz
forums-013f0b62b8094ac537dc5aa025d82d9cb59250f1.zip
[ticket/9771] Remove query string parameters that have no name.
PHPBB3-9771
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index bc3d721de5..4c461b5ee8 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2519,6 +2519,11 @@ function build_url($strip_vars = false)
$key = $arguments[0];
unset($arguments[0]);
+ if ($key === '')
+ {
+ continue;
+ }
+
$query[$key] = implode('=', $arguments);
}