From 1975b5cd1aa6290f1e42d5ea3bdf141566080769 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sat, 27 Sep 2003 23:36:34 +0000 Subject: [project @ 2003-09-27 23:36:34 by bursa] Implement CSS attribute selectors and parent / preceding combinators. svn path=/import/netsurf/; revision=324 --- debug/filetyped.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'debug') 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"; } -- cgit v1.2.3