mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-22 03:12:20 -04:00
+ small fix
This commit is contained in:
parent
449e1346f0
commit
5d4d8dea5b
@ -192,7 +192,7 @@ static int accessHandlerCallback(void *cls,
|
||||
}
|
||||
|
||||
/* Rewrite the content (add the search box) */
|
||||
if (hasSearchIndex && mimeType.find("text/html")) {
|
||||
if (hasSearchIndex && mimeType.find("text/html") != string::npos) {
|
||||
appendToFirstOccurence(content, "<head>", HTMLScripts);
|
||||
appendToFirstOccurence(content, "<body[^>]*>", HTMLDiv);
|
||||
contentLength = content.size();
|
||||
|
Loading…
x
Reference in New Issue
Block a user