diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-03-14 00:33:13 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-03-14 00:33:13 +0000 |
commit | 0fc9da23f6d971f7c4b0bc38f25552fea84be172 (patch) | |
tree | d196461a185bd83f24307ccbf2770cd47c6d598a | |
parent | 262db10204b5cb9a4a668ab5bb0f1a88c8f73f91 (diff) | |
download | netsurf-0fc9da23f6d971f7c4b0bc38f25552fea84be172.tar.gz netsurf-0fc9da23f6d971f7c4b0bc38f25552fea84be172.tar.bz2 |
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
-rw-r--r-- | amiga/filetype.c | 11 |
1 files changed, 11 insertions, 0 deletions
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. */ |