+ small fix

This commit is contained in:
kelson42 2010-01-24 12:24:51 +00:00
parent 449e1346f0
commit 5d4d8dea5b

View File

@ -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();