mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 07:42:11 +09:00
Remove excess dots from filenames #1251
This commit is contained in:
parent
f5f2cd99e0
commit
2284fb7128
2 changed files with 3 additions and 2 deletions
|
|
@ -29,6 +29,7 @@ class FilenameFilter
|
|||
// Remove excess spaces and replacement characters.
|
||||
$filename = trim($filename, ' .-_');
|
||||
$filename = preg_replace('/__+/', '_', $filename);
|
||||
$filename = preg_replace('/\.\.+/', '.', $filename);
|
||||
|
||||
// Clean up unnecessary encodings.
|
||||
$filename = strtr($filename, array('&' => '&'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue