Modified the clean_filename() function to strip parenthesis and slashes.

Not really sure if the method used is 100% correct ot no so, if you can
check it....
Perhpas I should make the stripping in backup process, istead of using this
central function. What do you think?
This commit is contained in:
stronk7 2004-04-14 18:09:41 +00:00
parent 6ef9481d6c
commit c7f3fdf70c

View File

@ -1610,6 +1610,9 @@ function clean_filename($string) {
$string = eregi_replace("\.\.", "", $string);
$string = eregi_replace("[^(-|[:alnum:]|\.)]", "_", $string);
$string = eregi_replace(",", "_", $string);
$string = eregi_replace("/", "_", $string);
$string = eregi_replace("\(", "_", $string);
$string = eregi_replace("\)", "_", $string);
return eregi_replace("_+", "_", $string);
}