From fb75227b77e023c7b7191717a57bac0fdc980bc9 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 3 Oct 2010 22:34:29 +0000 Subject: [PATCH] Simplify detection of valid filetypes for ASL svn path=/trunk/netsurf/; revision=10861 --- amiga/menu.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/amiga/menu.c b/amiga/menu.c index 595cf1d4e..9f5aab757 100755 --- a/amiga/menu.c +++ b/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); - if(!strcmp(mt,"text/html")) 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 - + if(content_lookup(mt) != CONTENT_OTHER) ret = TRUE; free(mt); return ret; }