diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-04-20 17:39:24 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-04-20 17:54:38 +0200 |
commit | d6eb03bf8603b89e181d036e76e555ff43a8fd8f (patch) | |
tree | c025a686c021af42c4980ddc6b89a1b06e3a7bd7 /source | |
parent | c9ad7d786ca408f541f1a702338aa882572ac011 (diff) | |
download | mupdf-d6eb03bf8603b89e181d036e76e555ff43a8fd8f.tar.xz |
epub: Also accept ".htm" file extension.
Diffstat (limited to 'source')
-rw-r--r-- | source/html/html-doc.c | 3 |
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")) |