Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If a file is called 'MYFILE.DOC' then it's not indexed, because array keys are used to find the right helper from search_files_get_helpers().
Comment | File | Size | Author |
---|---|---|---|
#1 | 1274254.search_by_page.file-extension-lowercase.patch | 583 bytes | joachim |
Comments
Comment #1
joachim CreditAttribution: joachim commentedHere's a patch.
Comment #2
jhodgdonActually, you can just define a new helper on the Helpers page to deal with .TXT, .DOC, or whatever, using the same definition as the lower-case helper, so I wouldn't classify this as "major", since there's an easy work-around.
Also, it needs a test, and a port to D7.
Comment #3
joachim CreditAttribution: joachim commentedThat would be a pretty ugly workaround though! Also, it wouldn't cover the arguably highly unlikely cases of mixed cases in the extension.
Comment #4
jhodgdonI'm not saying I won't add the code to Search by Page. Just saying it's not a huge major critical issue as there is a work-around. Also, it needs a test.
Comment #5
jhodgdonI have just committed a fix for this to both 6.x and 7.x, including a test. It seems to work...
I'm going to make a new release version for both, and this will be part of it.
Comment #6
jhodgdon