Project

General

Profile

Actions

Bug #14468

closed

indexed_search doesn't index external files

Added by old_pneff over 19 years ago. Updated over 19 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2004-12-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.7.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The function extractLinks() in class.indexer.php gets all links from the current page and indexes them if they are found on the file system.

It does check for existence of the files in a wrong way, though. It extracts for example the link "/uploads/abc.pdf" and then uses is_file() to check if that file exists. But to suceed it would have to prepend the virtual server root.

The function indexRegularDocument() works that way to check if the file exists. So the best fix might be to just remove the elseif clause in extractLinks() and replace it with an else clause.

Because the then executed function indexRegularDocument() does check if the given file exists, no harm is done.

I have changed the function in my installation and it works perfectly for PDF and DOC files.

(issue imported from #M641)

Actions

Also available in: Atom PDF