summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/html/html-doc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/html/html-doc.c b/source/html/html-doc.c
index 666d3d6c..90033717 100644
--- a/source/html/html-doc.c
+++ b/source/html/html-doc.c
@@ -153,7 +153,8 @@ htdoc_recognize(fz_context *doc, const char *magic)
if (ext)
{
- if (!fz_strcasecmp(ext, ".xml") || !fz_strcasecmp(ext, ".xhtml") || !fz_strcasecmp(ext, ".html"))
+ if (!fz_strcasecmp(ext, ".xml") || !fz_strcasecmp(ext, ".xhtml") ||
+ !fz_strcasecmp(ext, ".html") || !fz_strcasecmp(ext, ".htm"))
return 100;
}
if (!strcmp(magic, "application/html+xml") || !strcmp(magic, "application/xml") || !strcmp(magic, "text/xml"))