1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Media-Manager fixes and refinements

This commit is contained in:
CaMer0n
2012-07-18 06:34:26 +00:00
parent 2b57902e68
commit 1f073d0552
9 changed files with 126 additions and 30 deletions

View File

@@ -131,7 +131,7 @@ class e_file
public function cleanFileName($f,$rename=false)
{
$fullpath = $f['path'].$f['fname'];
$newfile = preg_replace("/[^a-z0-9-\.]/", "-", strtolower($f['fname']));
$newfile = preg_replace("/[^a-z0-9-\._]/", "-", strtolower($f['fname']));
$newpath = $f['path'].$newfile;
if($rename == true)