From af47a6332296c7a66627171bcf6d780038e5bad0 Mon Sep 17 00:00:00 2001 From: JorisDebonnet Date: Thu, 4 Dec 2014 21:57:31 +0100 Subject: [PATCH] File.php: support for MS Office template / macro files Fixes #3692 --- filesystem/File.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/filesystem/File.php b/filesystem/File.php index 286bfae06..822790d5c 100644 --- a/filesystem/File.php +++ b/filesystem/File.php @@ -120,17 +120,17 @@ class File extends DataObject { * Otherwise, the files will be able to be uploaded but they won't be able to be served by the * webserver. * - * - If you are running Apahce you will need to change assets/.htaccess + * - If you are running Apache you will need to change assets/.htaccess * - If you are running IIS you will need to change assets/web.config * * Instructions for the change you need to make are included in a comment in the config file. */ private static $allowed_extensions = array( - '','ace','arc','arj','asf','au','avi','bmp','bz2','cab','cda','css','csv','dmg','doc','docx', + '','ace','arc','arj','asf','au','avi','bmp','bz2','cab','cda','css','csv','dmg','doc','docx','dotx','dotm', 'flv','gif','gpx','gz','hqx','htm','html','ico','jar','jpeg','jpg','js','kml', 'm4a','m4v', 'mid','midi','mkv','mov','mp3','mp4','mpa','mpeg','mpg','ogg','ogv','pages','pcx','pdf','pkg', - 'png','pps','ppt','pptx','ra','ram','rm','rtf','sit','sitx','swf','tar','tgz','tif','tiff', - 'txt','wav','webm','wma','wmv','xhtml','xls','xlsx','xml','zip','zipx', + 'png','pps','ppt','pptx','potx','potm','ra','ram','rm','rtf','sit','sitx','swf','tar','tgz','tif','tiff', + 'txt','wav','webm','wma','wmv','xhtml','xls','xlsx','xltx','xltm','xml','zip','zipx', ); /**