[-] FO : Fix bug #PSCFV-7491 special characters in direct search

This commit is contained in:
gRoussac
2013-02-11 15:07:43 +01:00
parent cd11ab288e
commit 387c124a6d
+1
View File
@@ -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'];