[ticket/9771] Remove query string parameters that have no name.

PHPBB3-9771
This commit is contained in:
Chris Smith 2010-08-08 16:14:05 +01:00
parent e1328e87ce
commit 013f0b62b8

View file

@ -2519,6 +2519,11 @@ function build_url($strip_vars = false)
$key = $arguments[0]; $key = $arguments[0];
unset($arguments[0]); unset($arguments[0]);
if ($key === '')
{
continue;
}
$query[$key] = implode('=', $arguments); $query[$key] = implode('=', $arguments);
} }