mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
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
12eb1e9d24
commit
798823ab6e
@ -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