diff --git a/medias_fonctions.php b/medias_fonctions.php index 0dd49808c1fbfde887de89bdd88e828a08b772c2..1cc173c5287e03a71a7d3846589901f35dbc2006 100644 --- a/medias_fonctions.php +++ b/medias_fonctions.php @@ -44,7 +44,7 @@ if (isset($GLOBALS['visiteur_session']['zip_to_clean']) if (isset($_SERVER['REQUEST_METHOD']) and $_SERVER['REQUEST_METHOD'] == 'POST' and empty($_POST) - and isset($_SERVER['CONTENT_TYPE']) + and isset($_SERVER['CONTENT_TYPE']) and strlen($_SERVER['CONTENT_TYPE']) > 0 and strncmp($_SERVER['CONTENT_TYPE'], 'multipart/form-data', 19) == 0 and $_SERVER['CONTENT_LENGTH'] > medias_inigetoctets('post_max_size')