3
0
Fork 0

+ small bug fix (search box was not displayed with HTML mime-type containing a charset)

small_fixes
kelson42 16 years ago
parent 73d568197e
commit 449e1346f0

@ -192,7 +192,7 @@ static int accessHandlerCallback(void *cls,
}
/* Rewrite the content (add the search box) */
if (hasSearchIndex && mimeType == "text/html") {
if (hasSearchIndex && mimeType.find("text/html")) {
appendToFirstOccurence(content, "<head>", HTMLScripts);
appendToFirstOccurence(content, "<body[^>]*>", HTMLDiv);
contentLength = content.size();

Loading…
Cancel
Save