From bf5c33b0241fd7a66aefda941744e6361efb76ec Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 17 Aug 2011 16:10:45 +0000 Subject: [PATCH] Suppression cleanstring --- application/controllers/RechercheController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/controllers/RechercheController.php b/application/controllers/RechercheController.php index 223e9ca38..a9ac302c9 100644 --- a/application/controllers/RechercheController.php +++ b/application/controllers/RechercheController.php @@ -290,6 +290,9 @@ class RechercheController extends Zend_Controller_Action $params = $recherche['params']; } + Zend_Registry::get('firebug')->info($type); + Zend_Registry::get('firebug')->info($params); + //Giant if( !empty($params['pays']) && $type=='ent' ){ $this->_forward('search', 'giant'); @@ -392,7 +395,7 @@ class RechercheController extends Zend_Controller_Action $pays = $params['pays']; $pctMin = preg_replace('/[^0-9]/', '', trim($params['pctMin'])); $pctMax = preg_replace('/[^0-9]/', '', trim($params['pctMax'])); - $cpVille = preg_replace('/ +/',' ', preg_replace('/[^0-9A-Z]/', ' ',strtoupper(cleanstring($params['cpVille'])))); + $cpVille = preg_replace('/ +/',' ', preg_replace('/[^0-9A-Z]/', ' ',strtoupper($params['cpVille']))); $reponse = $ws->searchAct($actNomRs, $cpVille, $siret, $pays, $pctMin, $pctMax, $position); }