needed for advagg & any future on demand file generation module.
in short:
function stage_file_proxy_init() { // make sure we're asking for a file in the files dir $file_dir = file_directory_path(); if (strpos($_GET['q'], $file_dir) !== 0) { return; } $relative_path = substr($_GET['q'], strlen($file_dir) + 1); // Allow advagg requests through. if (strpos($relative_path, 'advagg_') === 0) { return; } ...
Can you supply the fix in a patch?
Is this still an issue on 7.x-1.x?
NMI for the second question.
I ended up making a module to do what I needed. http://drupal.org/project/files_proxy http://drupalcode.org/project/files_proxy.git/blob/0072ddca593cdb437b939...
My guess is it would still be an issue in D7 as the styles directory is used. http://drupalcode.org/project/stage_file_proxy.git/blob/0c3de858e905188e...
Drupal 6 is no longer supported.
Comments
Comment #1
mikeytown2 commentedin short:
Comment #2
gregglesCan you supply the fix in a patch?
Is this still an issue on 7.x-1.x?
NMI for the second question.
Comment #3
mikeytown2 commentedI ended up making a module to do what I needed.
http://drupal.org/project/files_proxy
http://drupalcode.org/project/files_proxy.git/blob/0072ddca593cdb437b939...
My guess is it would still be an issue in D7 as the styles directory is used.
http://drupalcode.org/project/stage_file_proxy.git/blob/0c3de858e905188e...
Comment #4
BarisW commentedDrupal 6 is no longer supported.