Skip to content

Commit

Permalink
Use request object to retrieve query params instead of _GET
Browse files Browse the repository at this point in the history
  • Loading branch information
sfroemkenjw authored and dkd-kaehm committed May 16, 2024
1 parent 446508a commit 7844e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7844e6b

Please sign in to comment.