X-Git-Url: http://git.cyclocoop.org/%40mot.html?a=blobdiff_plain;f=www%2Fecrire%2Finc%2Fgetdocument.php;h=441eb4530263d4aac6f5dd7268ce8e9114b139fa;hb=e99f0878011913365e49b30d90e496c24c301393;hp=a4f826078dc5de51f44f893258880e8ccd8517d7;hpb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed;p=velocampus%2Fweb%2Fwww.git
diff --git a/www/ecrire/inc/getdocument.php b/www/ecrire/inc/getdocument.php
index a4f8260..441eb45 100644
--- a/www/ecrire/inc/getdocument.php
+++ b/www/ecrire/inc/getdocument.php
@@ -3,7 +3,7 @@
/***************************************************************************\
* 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. *
@@ -54,7 +54,7 @@ function copier_document($ext, $orig, $source) {
$orig = preg_replace(',\.\.+,', '.', $orig); // pas de .. dans le nom du doc
$dir = creer_repertoire_documents($ext);
- $dest = preg_replace("/[^._=-\w\d]+/", "_",
+ $dest = preg_replace("/[^.=\w-]+/", "_",
translitteration(preg_replace("/\.([^.]+)$/", "",
preg_replace("/<[^>]*>/", '', basename($orig)))));