aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorIto Hiroyuki <ZXB01226@nifty.com>2010-12-15 10:50:24 +0000
committerIto Hiroyuki <ZXB01226@nifty.com>2010-12-15 10:50:24 +0000
commit7c039a46d5faf90e26408e073cedca510efc1eac (patch)
treedaa41a2e68a32a9d71505455546f425272abfd70 /file.c
parent[w3m-dev 04419] AC_W3M_EXTLIBS does not check /lib64 (diff)
downloadw3m-7c039a46d5faf90e26408e073cedca510efc1eac.tar.gz
w3m-7c039a46d5faf90e26408e073cedca510efc1eac.zip
[w3m-dev 04424] http://www.j10n.org/files/w3m-cvs-1.1040-misc.patch
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/file.c b/file.c
index a073f92..d4c47fd 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.264 2010/08/03 10:02:16 htrb Exp $ */
+/* $Id: file.c,v 1.265 2010/12/15 10:50:24 htrb Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -262,6 +262,8 @@ is_text_type(char *type)
{
return (type == NULL || type[0] == '\0' ||
strncasecmp(type, "text/", 5) == 0 ||
+ (strncasecmp(type, "application/", 12) == 0 &&
+ strstr(type, "xhtml") != NULL) ||
strncasecmp(type, "message/", sizeof("message/") - 1) == 0);
}