From 552936a6504d0955eb71bd887ad704914ed58a40 Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Mon, 18 Apr 2011 18:08:56 +0000 Subject: [PATCH] les nom de fichiers de log peuvent contenir des tiret bas _ et des majuscules --- ecrire/inc/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php index 2c11309341..1779432ac4 100644 --- a/ecrire/inc/utils.php +++ b/ecrire/inc/utils.php @@ -175,7 +175,7 @@ function pipeline($action, $val=null , $create_ifnotexists = true) { */ function spip_log($message=NULL, $name=NULL) { static $pre = array(); - preg_match('/^([a-z]*)\.?(\d)?$/S', (string) $name, $regs); + preg_match('/^([a-z_]*)\.?(\d)?$/iS', (string) $name, $regs); if (!$logname = $regs[1]) $logname = null; if (!$niveau = $regs[2]) -- GitLab