mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Merge branch 'HotFix' into 3.6
This commit is contained in:
@@ -977,13 +977,13 @@ class set_export extends set_abstract
|
||||
|
||||
if (is_file($file))
|
||||
{
|
||||
$testPath = function(){
|
||||
$testPath = function($file, $registry){
|
||||
return strpos($file, $registry->get('GV_RootPath').'tmp/download/') !== false
|
||||
|| strpos($file, $registry->get('GV_RootPath').'tmp/lazaret/') !== false
|
||||
|| strpos($file, $registry->get('GV_X_Accel_Redirect')) !== false;
|
||||
};
|
||||
|
||||
if ($registry->get('GV_modxsendfile') && $testPath())
|
||||
if ($registry->get('GV_modxsendfile') && $testPath($file, $registry))
|
||||
{
|
||||
$file_xaccel = str_replace(
|
||||
array(
|
||||
|
Reference in New Issue
Block a user