diff --git a/application/controllers/RechercheController.php b/application/controllers/RechercheController.php index 734f83da4..0e571687b 100644 --- a/application/controllers/RechercheController.php +++ b/application/controllers/RechercheController.php @@ -372,15 +372,18 @@ class RechercheController extends Zend_Controller_Action // Traitement des données formulaire //$raisonSociale = preg_replace('/[^0-9A-Z]/', ' ', strtoupper($params['raisonSociale'])); - $raisonSociale = str_replace(array('(',')'), array('', ''), $params['raisonSociale']); + $raisonSociale = str_replace(array('(',')', '/'), array('', '', ' '), $params['raisonSociale']); $numVoie = preg_replace('/[^0-9]/', '', $params['numero']); if ($numVoie > 9999) { - die('Numéro de voie incorrecte !'); //@todo : Afficher un message + $numVoie = ''; } $libVoie = cleanutf8($params['voie']); + $libVoie = str_replace(array('(',')', '/'), array('', '', ' '), $libVoie); + $cpVille = cleanutf8($params['cpVille']); + $cpVille = str_replace(array('(',')', '/'), array('', '', ' '), $cpVille); if (preg_match("/^([0-9]{2,5})([\D]*)/i", $cpVille, $matches)) { $cp = trim($matches[1]); diff --git a/library/Application/Controller/Plugin/Theme.php b/library/Application/Controller/Plugin/Theme.php index 8ea2205bc..045c5a413 100644 --- a/library/Application/Controller/Plugin/Theme.php +++ b/library/Application/Controller/Plugin/Theme.php @@ -1,7 +1,7 @@