Posted by ñull on October 7, 2009 at 1:17pm
| Project: | Search Files |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | fixed |
Issue Summary
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.
Comments
#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?
#3
That patch works for me, thanks (not tried with directory search).
#4
Thanks. That fixed one of my problems, too.
#5
Works also for me.
I suggest to commit it at least to the dev branch.
#6
I have committed the patch in #2