Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<?php // app_config.php /** * SANITIZE REQUEST */ function sanitize_request($methods, $array) { // methods: trim ; addslashes ; stripslashes ; etc... // array : $_GET ; $_POST ; etc... foreach ($methods as $function) { $array = array_map($function, $array); } return $array; } if ( ! get_magic_quotes_gpc() ) { $methods = array('trim', 'addslashes'); $_GET = sanitize_request($methods, $_GET); $_POST = sanitize_request($methods, $_POST); $_COOKIE = sanitize_request($methods, $_COOKIE); $_REQUEST = sanitize_request($methods, $_REQUEST); } ?>