From eb752117d35c1c12ee1954151d330e4790a1f8a2 Mon Sep 17 00:00:00 2001 From: Stefan Froemken Date: Thu, 16 May 2024 11:05:41 +0200 Subject: [PATCH] Use request object to retrieve query params instead of _GET --- Classes/Controller/SearchController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Controller/SearchController.php b/Classes/Controller/SearchController.php index 4760d99838..99a33ba365 100644 --- a/Classes/Controller/SearchController.php +++ b/Classes/Controller/SearchController.php @@ -49,7 +49,7 @@ protected function initializeAction(): void protected function mapGlobalQueryStringWhenEnabled(): void { - $query = GeneralUtility::_GET('q'); + $query = $this->request->getQueryParams()['q'] ?? null; $useGlobalQueryString = $query !== null && !$this->typoScriptConfiguration->getSearchIgnoreGlobalQParameter(); if ($useGlobalQueryString) {