Skip to content

Commit

Permalink
Included json and jsonld in the default list of extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed Nov 25, 2024
1 parent 7e8d6d8 commit 4abaaba
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions application/src/Form/SettingForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ class SettingForm extends Form implements EventManagerAwareInterface
const EXTENSION_WHITELIST = [
'aac', 'aif', 'aiff', 'asf', 'asx', 'avi', 'bmp', 'c', 'cc', 'class',
'css', 'divx', 'doc', 'docx', 'exe', 'gif', 'gz', 'gzip', 'h', 'ico',
'j2k', 'jp2', 'jpe', 'jpeg', 'jpg', 'm4a', 'm4v', 'mdb', 'mid', 'midi', 'mov',
'mp2', 'mp3', 'mp4', 'mpa', 'mpe', 'mpeg', 'mpg', 'mpp', 'odb', 'odc',
'odf', 'odg', 'odp', 'ods', 'odt', 'ogg', 'opus', 'pdf', 'png', 'pot', 'pps',
'ppt', 'pptx', 'qt', 'ra', 'ram', 'rtf', 'rtx', 'swf', 'tar', 'tif',
'tiff', 'txt', 'wav', 'wax', 'webm', 'webp', 'wma', 'wmv', 'wmx', 'wri', 'xla',
'xls', 'xlsx', 'xlt', 'xlw', 'zip',
'j2k', 'jp2', 'jpe', 'jpeg', 'jpg', 'json', 'jsonld', 'm4a', 'm4v',
'mdb', 'mid', 'midi', 'mov', 'mp2', 'mp3', 'mp4', 'mpa', 'mpe', 'mpeg',
'mpg', 'mpp', 'odb', 'odc', 'odf', 'odg', 'odp', 'ods', 'odt', 'ogg',
'opus', 'pdf', 'png', 'pot', 'pps', 'ppt', 'pptx', 'qt', 'ra', 'ram',
'rtf', 'rtx', 'swf', 'tar', 'tif', 'tiff', 'txt', 'wav', 'wax', 'webm',
'webp', 'wma', 'wmv', 'wmx', 'wri', 'xla', 'xls', 'xlsx', 'xlt', 'xlw',
'zip',
];

/**
Expand Down

0 comments on commit 4abaaba

Please sign in to comment.