BUGFIX Allow files with no extensions by setting File::$allowed_extensions with an empty string (from r101051)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@111573 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-10-04 04:42:25 +00:00
parent 2ea0e3e331
commit 40091e6c4e

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