forked from extern/egroupware
Make sure excluded mime types are type of string before splitting them, avoid js error "Uncaught typeError: ex_mime.split is not a function"
This commit is contained in:
parent
d798c6763a
commit
7ca76b9160
@ -772,7 +772,7 @@ function egw_get_file_editor_prefered_mimes(_mime)
|
||||
{
|
||||
ex_mimes = !ex_mimes ? _mime : ex_mimes+','+_mime;
|
||||
}
|
||||
if (fe && fe.mime && ex_mimes)
|
||||
if (fe && fe.mime && ex_mimes && typeof ex_mimes === 'string')
|
||||
{
|
||||
ex_mimes = ex_mimes.split(',');
|
||||
for (var mime in fe.mime)
|
||||
|
Loading…
Reference in New Issue
Block a user