mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2026-11-12 22:43:13 +00:00
Fix: letter case should be ignored while validating file extension
This commit is contained in:
1 parent
3741da692b
commit
5aa61301af
2 files changed
+3
-1
No files matched your search
@@ -86,5 +86,6 @@ func TestFileSystem_ValidateExtension(t *testing.T) {
|
||||
asserts.False(fs.ValidateExtension(ctx, "1.jpg.png"))
|
||||
asserts.True(fs.ValidateExtension(ctx, "1.txt"))
|
||||
asserts.True(fs.ValidateExtension(ctx, "1.png.jpg"))
|
||||
asserts.True(fs.ValidateExtension(ctx, "1.png.jpG"))
|
||||
asserts.False(fs.ValidateExtension(ctx, "1.png"))
|
||||
}
|
||||
Reference in new issue
Block a user