Skip to content

Commit 0f6c3bc

Browse files
authored
Merge pull request #1097 from youchenlee/secure-default-config
Fix: Enable mimetype validation by default and remove svg from whilte…
2 parents 7f07972 + 1100b62 commit 0f6c3bc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ We are also going to gain more integration like vue.js and Laravel Nova. Any PR
6464

6565
* [All contibutors](https://github.com/UniSharp/laravel-filemanager/graphs/contributors) from GitHub. (issues / PR)
6666
* [@taswler](https://github.com/tsawler) the original author of this package.
67-
* Nathan for providing security suggestions.
67+
* Security contributors (sort by alphabet)
68+
* Ayon Hasan (@lollipopl337)
69+
* Nathan
6870
* [@mdnazmulhasan27771](https://github.com/mdnazmulhasan27771) the designer of our logo. (Licensed CC BY 4.0)
6971

7072
### Credits

src/config/lfm.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
'image/pjpeg',
5656
'image/png',
5757
'image/gif',
58-
'image/svg+xml',
5958
'application/pdf',
6059
'text/plain',
6160
],
@@ -69,7 +68,6 @@
6968
'image/pjpeg',
7069
'image/png',
7170
'image/gif',
72-
'image/svg+xml',
7371
],
7472
],
7573
],
@@ -102,7 +100,7 @@
102100

103101
'should_validate_size' => false,
104102

105-
'should_validate_mime' => false,
103+
'should_validate_mime' => true,
106104

107105
// behavior on files with identical name
108106
// setting it to true cause old file replace with new one

0 commit comments

Comments
 (0)