dépôts
/
velocampus
/
web
/
www.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SPIP] ~2.1.12 -->2.1.25
[velocampus/web/www.git]
/
www
/
ecrire
/
inc
/
joindre.php
diff --git
a/www/ecrire/inc/joindre.php
b/www/ecrire/inc/joindre.php
index
8001297
..
b64692b
100644
(file)
--- a/
www/ecrire/inc/joindre.php
+++ b/
www/ecrire/inc/joindre.php
@@
-3,7
+3,7
@@
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
- * Copyright (c) 2001-201
1
*
+ * Copyright (c) 2001-201
4
*
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
@@
-143,7
+143,9
@@
function texte_upload_manuel($dir, $mode = 'document') {
foreach ($fichiers as $f) {
$f = preg_replace(",^$dir,",'',$f);
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');
$ext = strtolower($match[1]);
if (!isset($exts[$ext])) {
include_spip('inc/ajouter_documents');