aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-05-08 13:02:01 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-05-08 13:02:01 +0200
commitaade62b0a3d7a593f91dbdd04f8264dd541efa7f (patch)
tree2cceb53230d327c23cecd915e7237a4a24daf282 /phpBB/includes
parent0c3c77c6bfd2648c1b9d2cc9c80363155f5be0c5 (diff)
parenteddb4203757366eef2afc81d53d948d3aaeed0c7 (diff)
downloadforums-aade62b0a3d7a593f91dbdd04f8264dd541efa7f.tar
forums-aade62b0a3d7a593f91dbdd04f8264dd541efa7f.tar.gz
forums-aade62b0a3d7a593f91dbdd04f8264dd541efa7f.tar.bz2
forums-aade62b0a3d7a593f91dbdd04f8264dd541efa7f.tar.xz
forums-aade62b0a3d7a593f91dbdd04f8264dd541efa7f.zip
Merge pull request #2419 from prototech/ticket/12510
[ticket/12510] Convert & to &amp; in build_url() when no params are stripped. * prototech/ticket/12510: [ticket/12510] Convert & to &amp; in build_url() when no params are stripped.
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 3480a338c0..a0e2a46f54 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -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('&', '&amp;', $redirect);
+ }
return $redirect . ((strpos($redirect, '?') === false) ? '?' : '');
}