mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Remove double extensions from filenames #2556
This commit is contained in:
parent
464985b1ef
commit
8291cd671e
2 changed files with 8 additions and 1 deletions
|
|
@ -28,7 +28,11 @@ class FilenameFilterTest extends \Codeception\Test\Unit
|
|||
|
||||
// PHP extension
|
||||
'foobar.php' => 'foobar.phps',
|
||||
'foobar.php.jpg' => 'foobar.php.jpg',
|
||||
'foobar.php.jpg' => 'foobar.jpg',
|
||||
|
||||
// Double extension
|
||||
'Photos.docx .exe' => 'Photos.exe',
|
||||
'Photos.png.php.jpg' => 'Photos.png.jpg',
|
||||
|
||||
// Overlong filenames
|
||||
str_repeat('f', 200) . '.' . str_repeat('b', 30) => str_repeat('f', 111) . '.' . str_repeat('b', 15),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue