diff options
author | James Bursa <james@netsurf-browser.org> | 2003-09-27 23:36:34 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-09-27 23:36:34 +0000 |
commit | 1975b5cd1aa6290f1e42d5ea3bdf141566080769 (patch) | |
tree | 752e2c4c193c9895a65724ef5ff9cf8cfbb14871 /debug/filetyped.c | |
parent | 3e023a74a7389fdba9620958f4771b183f2ebc7f (diff) | |
download | netsurf-1975b5cd1aa6290f1e42d5ea3bdf141566080769.tar.gz netsurf-1975b5cd1aa6290f1e42d5ea3bdf141566080769.tar.bz2 |
[project @ 2003-09-27 23:36:34 by bursa]
Implement CSS attribute selectors and parent / preceding combinators.
svn path=/import/netsurf/; revision=324
Diffstat (limited to 'debug/filetyped.c')
-rw-r--r-- | debug/filetyped.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debug/filetyped.c b/debug/filetyped.c index 1695a1c18..283c4d142 100644 --- a/debug/filetyped.c +++ b/debug/filetyped.c @@ -16,8 +16,10 @@ const char *fetch_filetype(const char *unix_path) { + int l; LOG(("unix path %s", unix_path)); - if (strcasecmp(unix_path, "home/james/Projects/netsurf/CSS") == 0) + l = strlen(unix_path); + if (2 < l && strcasecmp(unix_path + l - 3, "css") == 0) return "text/css"; return "text/html"; } |