From 6c167ac076ba2c2b09c66492439c4d6166e2a349 Mon Sep 17 00:00:00 2001 From: Soner Sayakci Date: Thu, 22 Aug 2019 16:18:40 +0200 Subject: [PATCH] SW-24473 - Synchronize symfony request --- .../Plugins/Default/Frontend/InputFilter/Bootstrap.php | 5 +++++ themes/Frontend/Bare/frontend/search/fuzzy.tpl | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/Shopware/Plugins/Default/Frontend/InputFilter/Bootstrap.php b/engine/Shopware/Plugins/Default/Frontend/InputFilter/Bootstrap.php index a8140576d90..53c20003a0f 100644 --- a/engine/Shopware/Plugins/Default/Frontend/InputFilter/Bootstrap.php +++ b/engine/Shopware/Plugins/Default/Frontend/InputFilter/Bootstrap.php @@ -63,6 +63,7 @@ public function install() */ public function onRouteShutdown(Enlight_Controller_EventArgs $args) { + /** @var Enlight_Controller_Request_RequestHttp $request */ $request = $args->getRequest(); $config = $this->Config(); @@ -156,6 +157,10 @@ public function onRouteShutdown(Enlight_Controller_EventArgs $args) } unset($process); + $request->query->replace($_GET); + $request->request->replace($_POST); + $request->cookies->replace($_COOKIE); + $request->server->replace($_SERVER); $request->setParams($userParams); } diff --git a/themes/Frontend/Bare/frontend/search/fuzzy.tpl b/themes/Frontend/Bare/frontend/search/fuzzy.tpl index 2ca3d07b923..ba16630afa7 100644 --- a/themes/Frontend/Bare/frontend/search/fuzzy.tpl +++ b/themes/Frontend/Bare/frontend/search/fuzzy.tpl @@ -4,7 +4,7 @@ {block name='frontend_index_start'} {if $sRequests.sSearchOrginal} {s name="SearchResultsFor" assign="snippetSearchResultsFor"}{/s} - {$sBreadcrumb = [['name' => $snippetSearchResultsFor]]} + {$sBreadcrumb = [['name' => $snippetSearchResultsFor|htmlentities]]} {else} {s name="SearchResultsEmpty" assign="snippetSearchResultsEmpty"}{/s} {$sBreadcrumb = [['name' => $snippetSearchResultsEmpty]]}