From 177d95ee88f75e7046144d0ccf81f2fccf5c5071 Mon Sep 17 00:00:00 2001
From: denisb <denisb@a-working-class-hero-is-something-to.be>
Date: Tue, 31 Dec 2013 14:36:53 +0000
Subject: [PATCH] =?UTF-8?q?ecrire/inc/documents.php=20:=20compatibilit?=
 =?UTF-8?q?=C3=A9=20pcre=208.34=20(php=205.5).=20le=20tiret=20pour=20ne=20?=
 =?UTF-8?q?pas=20=C3=AAtre=20consid=C3=A9r=C3=A9=20comme=20marque=20d'inte?=
 =?UTF-8?q?rvalle=20dans=20une=20classe=20de=20caract=C3=A8res=20doit=20?=
 =?UTF-8?q?=C3=AAtre=20plac=C3=A9=20soit=20au=20d=C3=A9but,=20soit=20?=
 =?UTF-8?q?=C3=A0=20la=20fin=20de=20l'=C3=A9num=C3=A9ration.=20r=C3=A9sout?=
 =?UTF-8?q?=20#3132.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/inc/documents.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ecrire/inc/documents.php b/ecrire/inc/documents.php
index 23d9d008e1..56e441f417 100644
--- a/ecrire/inc/documents.php
+++ b/ecrire/inc/documents.php
@@ -117,7 +117,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)))));
 
-- 
GitLab