From d6eb03bf8603b89e181d036e76e555ff43a8fd8f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 20 Apr 2015 17:39:24 +0200 Subject: epub: Also accept ".htm" file extension. --- source/html/html-doc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') 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")) -- cgit v1.2.3