URLs of files are missing the path returned by file_directory_path() when used in Pressflow. This can be attributed to Pressflow's distinction between "created files" and "shipped files", which Pressflow treats differently by entirely skipping the file_directory_path() call if the file does not begin with file_directory_path() (a "shipped file").

Since the function _pathfilter_process_files() calls file_create_url() with an internalized path, Pressflow treats it as a shipped file.

Patch follows.

CommentFileSizeAuthor
#1 pressflow_file_links-1076914-1.patch955 byteszhangtaihao

Comments

zhangtaihao’s picture

Status: Active » Needs review
StatusFileSize
new955 bytes
mstrelan’s picture

This also applies to the drupal6 core patch that comes with CDN module, for use when you're not using PressFlow. I can confirm that this patch in #1 fixes the issue in that scenario, but have not tested it on standard Drupal.