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

com2 - October 8, 2009 - 18:38
Title:Incorrect link to secure file system» Incorrect link to private file system

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

com2 - October 20, 2009 - 12:53
Version:6.x-2.0-beta4» 6.x-2.x-dev
Status:active» reviewed & tested by the community

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?

AttachmentSize
search_files_attachments.private_file_system.patch 1.02 KB
 
 

Drupal is a registered trademark of Dries Buytaert.