summaryrefslogtreecommitdiff
path: root/source/html
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-04-20 17:39:24 +0200
committerTor Andersson <tor.andersson@artifex.com>2015-04-20 17:54:38 +0200
commitd6eb03bf8603b89e181d036e76e555ff43a8fd8f (patch)
treec025a686c021af42c4980ddc6b89a1b06e3a7bd7 /source/html
parentc9ad7d786ca408f541f1a702338aa882572ac011 (diff)
downloadmupdf-d6eb03bf8603b89e181d036e76e555ff43a8fd8f.tar.xz
epub: Also accept ".htm" file extension.
Diffstat (limited to 'source/html')
-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"))