From 878f147950801aeb632c6896bec8fad60813c0f3 Mon Sep 17 00:00:00 2001 From: Humdinger Date: Wed, 5 Oct 2016 16:40:29 +0200 Subject: [PATCH] Allow TextSearch to grep XHTML files ...while the setting "Text files only" is active. Fixes #12539. Once users are able to set supported MIME types on packaged apps (which are read-only), it might be a good idea to have TextSearch check its supported MIME types and examine the target files accordingly. --- src/apps/text_search/FileIterator.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/text_search/FileIterator.cpp b/src/apps/text_search/FileIterator.cpp index b46e862d56..8a4a945371 100644 --- a/src/apps/text_search/FileIterator.cpp +++ b/src/apps/text_search/FileIterator.cpp @@ -58,6 +58,9 @@ FileIterator::_ExamineFile(BEntry& entry, char* buffer, bool textFilesOnly) return true; } } + // Make an exception for XHTML files + if (strcmp("application/xhtml+xml", mimeTypeString) == 0) + return true; return false; }