From 387c124a6d4e61350c359024f7900edfe5665ea6 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Mon, 11 Feb 2013 15:07:43 +0100 Subject: [PATCH] [-] FO : Fix bug #PSCFV-7491 special characters in direct search --- controllers/front/SearchController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/front/SearchController.php b/controllers/front/SearchController.php index af8ccea0c..3e1a543a2 100644 --- a/controllers/front/SearchController.php +++ b/controllers/front/SearchController.php @@ -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'];