[haiku-commits] haiku: hrev50568 - src/apps/text_search

  • From: "" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "humdingerb" for DMARC)
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 5 Oct 2016 16:46:15 +0200 (CEST)

hrev50568 adds 1 changeset to branch 'master'
old head: e25f9933858aab6503f32df3af579dadb9d5c25c
new head: 878f147950801aeb632c6896bec8fad60813c0f3
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=878f14795080+%5Ee25f9933858a

----------------------------------------------------------------------------

878f14795080: 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.

                                        [ Humdinger <humdingerb@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev50568
Commit:      878f147950801aeb632c6896bec8fad60813c0f3
URL:         http://cgit.haiku-os.org/haiku/commit/?id=878f14795080
Author:      Humdinger <humdingerb@xxxxxxxxx>
Date:        Wed Oct  5 14:40:29 2016 UTC

Ticket:      https://dev.haiku-os.org/ticket/12539

----------------------------------------------------------------------------

1 file changed, 3 insertions(+)
src/apps/text_search/FileIterator.cpp | 3 +++

----------------------------------------------------------------------------

diff --git a/src/apps/text_search/FileIterator.cpp 
b/src/apps/text_search/FileIterator.cpp
index b46e862..8a4a945 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;
 }


Other related posts:

  • » [haiku-commits] haiku: hrev50568 - src/apps/text_search