Incorrect link to private file system
com2 - October 7, 2009 - 13:17
| Project: | Search Files |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | reviewed & tested by the community |
Description
In the attached files search results the link to the file is incorrect when you configured Drupal in secure file system. The file path is not rewritten to the http://domain.con/system/files/attachedfile.ext but it is http://domain.com/absolutepath/attachedfile.ext that of course (and fortunately) is not reachable by the browser.

#1
change in my explanation the word secure with private. What I mean is that the upload file path of Drupal is outside the document root and download method is set to private.
#2
Attached a patch for this issue. I only fixed the attached files module. I don't use directory search, so may be someone else can do the same there?