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
This commit is contained in:
Sean Harvey 2010-03-15 06:32:25 +00:00 committed by Sam Minnee
parent f19048c0c6
commit 81afa6d67e

View File

@ -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',