From 34528ddaf274841903789345e13e09176f11beb6 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sat, 20 Aug 2022 18:20:50 +0200 Subject: [PATCH] Fix bug : clean_filename removed the dot (extension) --- include/lib/user_common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/lib/user_common.php b/include/lib/user_common.php index 5ab89c801..abb1f3839 100644 --- a/include/lib/user_common.php +++ b/include/lib/user_common.php @@ -223,10 +223,10 @@ function check_parameter($p_array,$p_needed) function clean_filename($p_filename) { $filename=$p_filename; - foreach (array('/','*','<','>',';',',','\\',':','(',')',' ','[',']','.') as $i) { + foreach (array('/','*','<','>',';',',','\\',':','(',')',' ','[',']') as $i) { $filename= str_replace($i, "-",$filename); } return $filename; } -?> \ No newline at end of file +?>