diff --git a/medias_pipelines.php b/medias_pipelines.php index 4e76f2297bd35b76b1444fcd7f661182d4e2d36b..3d5dd535af49542c3bbcdbdb14d31be9fd71ed42 100644 --- a/medias_pipelines.php +++ b/medias_pipelines.php @@ -35,6 +35,7 @@ if (!defined('_ECRIRE_INC_VERSION')) { function medias_detecter_fond_par_defaut($fond) { if (empty($_GET) and empty($_POST) and empty($_FILES) and isset($_SERVER['CONTENT_LENGTH']) + and isset($_SERVER['CONTENT_TYPE']) and strstr($_SERVER['CONTENT_TYPE'], 'multipart/form-data;') ) { include_spip('inc/getdocument');