From 81afa6d67e8c48257e00697a418f3ca9be23d66f Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 15 Mar 2010 06:32:25 +0000 Subject: [PATCH] BUGFIX Allow files with no extensions by setting File::$allowed_extensions with an empty string git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@101051 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- filesystem/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filesystem/File.php b/filesystem/File.php index f13eadfb7..e1895feb2 100755 --- a/filesystem/File.php +++ b/filesystem/File.php @@ -48,7 +48,7 @@ class File extends DataObject { * @var array */ public static $allowed_extensions = array( - 'html','htm','xhtml','js','css', + '','html','htm','xhtml','js','css', 'bmp','png','gif','jpg','jpeg','ico','pcx','tif','tiff', 'au','mid','midi','mpa','mp3','ogg','m4a','ra','wma','wav','cda', 'avi','mpg','mpeg','asf','wmv','m4v','mov','mkv','mp4','swf','flv','ram','rm',