Don't allow opening of files we know cannot be edited; closes #2286

This commit is contained in:
Dane Everitt 2020-08-30 10:25:48 -07:00
parent 906cfce81c
commit d87438621f
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 65 additions and 65 deletions

View file

@ -178,20 +178,6 @@ return [
*/
'files' => [
'max_edit_size' => env('PTERODACTYL_FILES_MAX_EDIT_SIZE', 1024 * 1024 * 4),
'editable' => [
'application/json',
'application/javascript',
'application/xml',
'application/xhtml+xml',
'inode/x-empty',
'text/xml',
'text/css',
'text/html',
'text/plain',
'text/x-perl',
'text/x-shellscript',
'text/x-python',
],
],
/*