[-] FO : Fix bug #PSCFV-7491 special characters in direct search
This commit is contained in:
@@ -88,6 +88,7 @@ class SearchControllerCore extends FrontController
|
||||
$this->productSort();
|
||||
$this->n = abs((int)(Tools::getValue('n', Configuration::get('PS_PRODUCTS_PER_PAGE'))));
|
||||
$this->p = abs((int)(Tools::getValue('p', 1)));
|
||||
$query = Tools::replaceAccentedChars(urldecode($query));
|
||||
$search = Search::find($this->context->language->id, $query, $this->p, $this->n, $this->orderBy, $this->orderWay);
|
||||
Hook::exec('actionSearch', array('expr' => $query, 'total' => $search['total']));
|
||||
$nbProducts = $search['total'];
|
||||
|
||||
Reference in New Issue
Block a user