Skip to content

Commit

Permalink
Merge pull request #529 from creative-commoners/pulls/1.11/disallow-gpx
Browse files Browse the repository at this point in the history
Don't allow uploading .gpx files
  • Loading branch information
GuySartorelli authored Nov 20, 2022
2 parents 97afd88 + d132e9f commit 252179e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class File extends DataObject implements AssetContainer, Thumbnail, CMSPreviewab
*/
private static $allowed_extensions = [
'', 'ace', 'arc', 'arj', 'asf', 'au', 'avi', 'bmp', 'bz2', 'cab', 'cda', 'csv', 'dmg', 'doc',
'docx', 'dotx', 'flv', 'gif', 'gpx', 'gz', 'hqx', 'ico', 'jpeg', 'jpg', 'kml',
'docx', 'dotx', 'flv', 'gif', 'gz', 'hqx', 'ico', 'jpeg', 'jpg', 'kml',
'm4a', 'm4v', 'mid', 'midi', 'mkv', 'mov', 'mp3', 'mp4', 'mpa', 'mpeg', 'mpg', 'ogg', 'ogv', 'pages',
'pcx', 'pdf', 'png', 'pps', 'ppt', 'pptx', 'potx', 'ra', 'ram', 'rm', 'rtf', 'sit', 'sitx',
'tar', 'tgz', 'tif', 'tiff', 'txt', 'wav', 'webm', 'webp', 'wma', 'wmv', 'xls', 'xlsx', 'xltx', 'zip',
Expand All @@ -225,7 +225,7 @@ class File extends DataObject implements AssetContainer, Thumbnail, CMSPreviewab
'ram', 'rm', 'snd', 'wav', 'wma',
],
'document' => [
'css', 'csv', 'doc', 'docx', 'dotm', 'dotx', 'htm', 'html', 'gpx', 'js', 'kml', 'pages', 'pdf',
'css', 'csv', 'doc', 'docx', 'dotm', 'dotx', 'htm', 'html', 'js', 'kml', 'pages', 'pdf',
'potm', 'potx', 'pps', 'ppt', 'pptx', 'rtf', 'txt', 'xhtml', 'xls', 'xlsx', 'xltm', 'xltx', 'xml',
],
'image' => [
Expand Down

0 comments on commit 252179e

Please sign in to comment.