Commit 8066827d authored by Lionel VEST's avatar Lionel VEST
Browse files

Supprime les espaces si la dénomination n'est composée que de nombres et d'espaces

parent d948318c
......@@ -7,6 +7,8 @@ $_GET['commune'] = preg_replace('/[^0-9a-zA-Zàâäéèêëïîôöùûüÿç\-\
$_GET['code_postal'] = preg_replace('/[^0-9]/', '', $_GET['code_postal']);
$_GET['naf'] = preg_replace('/[^0-9a-zA-Z.]/', '', $_GET['naf']);
if (is_numeric(str_replace(' ','',$_GET['denomination'])) AND strlen(str_replace(' ','',$_GET['denomination'])) >= 9)
$_GET['denomination'] = str_replace(' ','',$_GET['denomination']);
include('index.php');
include('constants.php');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment