call urldecode on request provided only

This commit is contained in:
ghost 2023-10-14 21:11:44 +03:00
parent 68fbafaefa
commit 20dc122ab2

View File

@ -21,7 +21,7 @@ class SearchController extends AbstractController
return $this->render(
'default/search/module.html.twig',
[
'query' => urldecode($query),
'query' => $query ? urldecode($query) : '',
]
);
}