aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRubén Calvo <rubencm@gmail.com>2018-07-10 13:17:04 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-05-09 18:59:45 +0200
commit3c2e75b52adc18360a10590543f29513b95f206b (patch)
tree6e1985bb1772a31b24a9931b5c165669bc916295
parent7c26569d93dc4f533f1c912b1ab9a4b72bdd8677 (diff)
downloadforums-3c2e75b52adc18360a10590543f29513b95f206b.tar
forums-3c2e75b52adc18360a10590543f29513b95f206b.tar.gz
forums-3c2e75b52adc18360a10590543f29513b95f206b.tar.bz2
forums-3c2e75b52adc18360a10590543f29513b95f206b.tar.xz
forums-3c2e75b52adc18360a10590543f29513b95f206b.zip
[ticket/15720] Don't escape ampersands on redirections
PHPBB3-15720
-rw-r--r--phpBB/cron.php2
-rw-r--r--phpBB/feed.php6
-rw-r--r--phpBB/report.php2
3 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/cron.php b/phpBB/cron.php
index 58261429a2..c99b772487 100644
--- a/phpBB/cron.php
+++ b/phpBB/cron.php
@@ -31,7 +31,7 @@ $get_params_array = $request->get_super_global(\phpbb\request\request_interface:
/** @var \phpbb\controller\helper $controller_helper */
$controller_helper = $phpbb_container->get('controller.helper');
$response = new RedirectResponse(
- $controller_helper->route('phpbb_cron_run', $get_params_array),
+ $controller_helper->route('phpbb_cron_run', $get_params_array, false),
301
);
$response->send();
diff --git a/phpBB/feed.php b/phpBB/feed.php
index 1480867d6c..e384489ee9 100644
--- a/phpBB/feed.php
+++ b/phpBB/feed.php
@@ -36,17 +36,17 @@ $mode = $request->variable('mode', '');
if ($forum_id !== 0)
{
- $url = $controller_helper->route('phpbb_feed_forum', array('forum_id' => $forum_id));
+ $url = $controller_helper->route('phpbb_feed_forum', array('forum_id' => $forum_id), false);
}
else if ($topic_id !== 0)
{
- $url = $controller_helper->route('phpbb_feed_topic', array('topic_id' => $topic_id));
+ $url = $controller_helper->route('phpbb_feed_topic', array('topic_id' => $topic_id), false);
}
else
{
try
{
- $url = $controller_helper->route('phpbb_feed_overall', array('mode' => $mode));
+ $url = $controller_helper->route('phpbb_feed_overall', array('mode' => $mode), false);
}
catch (InvalidParameterException $e)
{
diff --git a/phpBB/report.php b/phpBB/report.php
index bb26b972aa..d0d7b3776a 100644
--- a/phpBB/report.php
+++ b/phpBB/report.php
@@ -35,7 +35,7 @@ $controller_helper = $phpbb_container->get('controller.helper');
$response = new RedirectResponse(
$controller_helper->route($redirect_route_name, array(
'id' => ($pm_id === 0) ? $post_id : $pm_id,
- )),
+ ), false),
301
);
$response->send();