noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 09/14: Fix bug : clean_filename removed the d


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 09/14: Fix bug : clean_filename removed the dot (extension)
Date: Mon, 22 Aug 2022 12:21:53 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 34528ddaf274841903789345e13e09176f11beb6
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Aug 20 18:20:50 2022 +0200

    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
+?>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]