1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 13:30:25 +02:00

[ticket/12510] Convert & to & in build_url() when no params are stripped.

PHPBB3-12510
This commit is contained in:
Cesar G
2014-05-06 14:54:51 -07:00
parent 3c86a9bcca
commit eddb420375
2 changed files with 9 additions and 0 deletions

View File

@@ -2356,6 +2356,10 @@ function build_url($strip_vars = false)
{
$redirect = $phpbb_path_helper->strip_url_params($redirect, $strip_vars, false);
}
else
{
$redirect = str_replace('&', '&', $redirect);
}
return $redirect . ((strpos($redirect, '?') === false) ? '?' : '');
}