Skip to content

Commit

Permalink
fix: properly decode search url in formAction
Browse files Browse the repository at this point in the history
  • Loading branch information
doleh committed Nov 29, 2024
1 parent 165af1f commit feddc93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Classes/Controller/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ public function formAction(): ResponseInterface
->setArguments($this->getSearchArguments('*'))
->build();

$queryParam = str_replace('=*', '', str_replace($searchUrl . '?', '', urldecode($searchUrlWithQueryParam)));
$queryParam = str_replace(
'=*',
'',
str_replace(rawurldecode($searchUrl) . '?', '', rawurldecode($searchUrlWithQueryParam))
);

$suggestUrl = $this->uriBuilder
->reset()
Expand Down

0 comments on commit feddc93

Please sign in to comment.