mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-27 14:21:18 -04:00
+ small bug fix (search box was not displayed with HTML mime-type containing a charset)
This commit is contained in:
parent
73d568197e
commit
449e1346f0
@ -192,7 +192,7 @@ static int accessHandlerCallback(void *cls,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Rewrite the content (add the search box) */
|
/* Rewrite the content (add the search box) */
|
||||||
if (hasSearchIndex && mimeType == "text/html") {
|
if (hasSearchIndex && mimeType.find("text/html")) {
|
||||||
appendToFirstOccurence(content, "<head>", HTMLScripts);
|
appendToFirstOccurence(content, "<head>", HTMLScripts);
|
||||||
appendToFirstOccurence(content, "<body[^>]*>", HTMLDiv);
|
appendToFirstOccurence(content, "<body[^>]*>", HTMLDiv);
|
||||||
contentLength = content.size();
|
contentLength = content.size();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user