/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
- * Copyright (c) 2001-2011 *
+ * Copyright (c) 2001-2014 *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
foreach ($fichiers as $f) {
$f = preg_replace(",^$dir,",'',$f);
- if (preg_match(",\.([^.]+)$,", $f, $match)) {
+ if (!preg_match(",\.([^.]+)$,", $f, $match))
+ if (strtolower($f) === 'makefile') $match = array(0,'txt');
+ if ($match) {
$ext = strtolower($match[1]);
if (!isset($exts[$ext])) {
include_spip('inc/ajouter_documents');