1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-14 04:30:29 +01:00

[ticket/15720] Don't escape ampersands on redirections

PHPBB3-15720
This commit is contained in:
Rubén Calvo 2018-07-10 13:17:04 +02:00
parent cd84919f1a
commit f0b70512c0
3 changed files with 5 additions and 5 deletions

View File

@ -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();

View File

@ -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)
{

View File

@ -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();