diff --git a/lib/classes/set/export.class.php b/lib/classes/set/export.class.php index 86886690ec..1a23dd542d 100644 --- a/lib/classes/set/export.class.php +++ b/lib/classes/set/export.class.php @@ -977,8 +977,11 @@ class set_export extends set_abstract if (is_file($file)) { + $testPath = 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') && strpos($file, $registry->get('GV_X_Accel_Redirect')) !== false) + if ($registry->get('GV_modxsendfile') && $testPath) { $file_xaccel = str_replace( array(