From 0fc9da23f6d971f7c4b0bc38f25552fea84be172 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 14 Mar 2011 00:33:13 +0000 Subject: Check for RISC OS CSS filetype in case we have got redirected (ie. we are running from the SVN tree and using resource: addressing) svn path=/trunk/netsurf/; revision=12041 --- amiga/filetype.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'amiga/filetype.c') diff --git a/amiga/filetype.c b/amiga/filetype.c index a3606805b..330137bb9 100644 --- a/amiga/filetype.c +++ b/amiga/filetype.c @@ -51,6 +51,17 @@ const char *fetch_filetype(const char *unix_path) found = TRUE; } + /* Have a quick check for the RISC OS CSS filetype. Some of the redirects + * caused by links in the SVN tree prevent NetSurf from reading the MIME + * type from the icon (step two, below). + */ + + if(strncmp(unix_path + strlen(unix_path) - 4, ",f79", 4) == 0) + { + strcpy(mimetype,"text/css"); + found = TRUE; + } + /* Secondly try getting a tooltype "MIMETYPE" and use that as the MIME type. Will fail over to default icons if the file doesn't have a real icon. */ -- cgit v1.2.3