mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-27 08:50:02 +03:00
Simplify detection of valid filetypes for ASL
svn path=/trunk/netsurf/; revision=10861
This commit is contained in:
parent
c0b63c111b
commit
fb75227b77
15
amiga/menu.c
15
amiga/menu.c
@ -825,20 +825,7 @@ static const ULONG ami_asl_mime_hook(struct Hook *mh,struct FileRequester *fr,st
|
|||||||
|
|
||||||
mt = fetch_mimetype(fname);
|
mt = fetch_mimetype(fname);
|
||||||
|
|
||||||
if(!strcmp(mt,"text/html")) ret = TRUE;
|
if(content_lookup(mt) != CONTENT_OTHER) ret = TRUE;
|
||||||
else if(!strcmp(mt,"text/plain")) ret = TRUE;
|
|
||||||
else if(!strcmp(mt,"image/jpeg")) ret = TRUE;
|
|
||||||
else if(!strcmp(mt,"image/gif")) ret = TRUE;
|
|
||||||
else if(!strcmp(mt,"image/png")) ret = TRUE;
|
|
||||||
else if(!strcmp(mt,"image/jng")) ret = TRUE;
|
|
||||||
else if(!strcmp(mt,"image/mng")) ret = TRUE;
|
|
||||||
else if(!strcmp(mt,"image/bmp")) ret = TRUE;
|
|
||||||
else if(!strcmp(mt,"image/ico")) ret = TRUE;
|
|
||||||
else if(!strcmp(mt,"image/x-riscos-sprite")) ret = TRUE;
|
|
||||||
#ifdef WITH_NS_SVG
|
|
||||||
else if(!strcmp(mt,"image/svg")) ret = TRUE;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
free(mt);
|
free(mt);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user