Show
Ignore:
Timestamp:
2007-10-04 10:57:49 (2 years ago)
Author:
wwalc
Message:

Fix for #1325 changed black list to white list approach, unified list of allowed extensions in all connectors

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/filemanager/connectors/py/config.py

    r595 r973  
    107107#               Attention: It must end with a slash: '/' 
    108108 
    109 AllowedExtensions['File']               = [] 
    110 DeniedExtensions['File']                = ['html','htm','php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi','htaccess','asis','sh','shtml','shtm','phtm', 'py', 'spy', 'pyw'] 
     109AllowedExtensions['File']               = ['7z','aiff','asf','avi','bmp','csv','doc','flv','gif','gz','gzip','jpeg','jpg','mid','mov','mp3','mp4','mpc','mpeg','mpg','ods','odt','pdf','png','ppt','pxd','qt','ram','rar','rm','rmi','rmvb','rtf','sdc','sitd','swf','sxc','sxw','tar','tgz','tif','tiff','txt','vsd','wav','wma','wmv','xls','xml','zip'] 
     110DeniedExtensions['File']                = [] 
    111111FileTypesPath['File']                   = UserFilesPath + 'file/'  
    112112FileTypesAbsolutePath['File']   = (not UserFilesAbsolutePath == '') and (UserFilesAbsolutePath + 'file/') or '' 
     
    114114QuickUploadAbsolutePath['File'] = FileTypesAbsolutePath['File'] 
    115115 
    116 AllowedExtensions['Image']              = ['jpg','gif','jpeg','png'] 
     116AllowedExtensions['Image']              = ['bmp','gif','jpeg','jpg','png','psd','tif','tiff'] 
    117117DeniedExtensions['Image']               = [] 
    118118FileTypesPath['Image']                  = UserFilesPath + 'image/'  
     
    128128QuickUploadAbsolutePath['Flash']= FileTypesAbsolutePath['Flash'] 
    129129 
    130 AllowedExtensions['Media']              = [ 'swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg' ] 
     130AllowedExtensions['Media']              = ['aiff','asf','avi','bmp','flv','gif','jpeg','jpg','mid','mov','mp3','mp4','mpc','mpeg','mpg','png','qt','ram','rm','rmi','rmvb','swf','tif','tiff','wav','wma','wmv'] 
    131131DeniedExtensions['Media']               = [] 
    132132FileTypesPath['Media']                  = UserFilesPath + 'media/'