mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15720] Don't escape ampersands on redirections
PHPBB3-15720
This commit is contained in:
parent
7c26569d93
commit
3c2e75b52a
3 changed files with 5 additions and 5 deletions
|
@ -31,7 +31,7 @@ $get_params_array = $request->get_super_global(\phpbb\request\request_interface:
|
||||||
/** @var \phpbb\controller\helper $controller_helper */
|
/** @var \phpbb\controller\helper $controller_helper */
|
||||||
$controller_helper = $phpbb_container->get('controller.helper');
|
$controller_helper = $phpbb_container->get('controller.helper');
|
||||||
$response = new RedirectResponse(
|
$response = new RedirectResponse(
|
||||||
$controller_helper->route('phpbb_cron_run', $get_params_array),
|
$controller_helper->route('phpbb_cron_run', $get_params_array, false),
|
||||||
301
|
301
|
||||||
);
|
);
|
||||||
$response->send();
|
$response->send();
|
||||||
|
|
|
@ -36,17 +36,17 @@ $mode = $request->variable('mode', '');
|
||||||
|
|
||||||
if ($forum_id !== 0)
|
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)
|
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
|
else
|
||||||
{
|
{
|
||||||
try
|
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)
|
catch (InvalidParameterException $e)
|
||||||
{
|
{
|
||||||
|
|
|
@ -35,7 +35,7 @@ $controller_helper = $phpbb_container->get('controller.helper');
|
||||||
$response = new RedirectResponse(
|
$response = new RedirectResponse(
|
||||||
$controller_helper->route($redirect_route_name, array(
|
$controller_helper->route($redirect_route_name, array(
|
||||||
'id' => ($pm_id === 0) ? $post_id : $pm_id,
|
'id' => ($pm_id === 0) ? $post_id : $pm_id,
|
||||||
)),
|
), false),
|
||||||
301
|
301
|
||||||
);
|
);
|
||||||
$response->send();
|
$response->send();
|
||||||
|
|
Loading…
Add table
Reference in a new issue