Merge with master

This commit is contained in:
Romain Neutron
2012-02-16 15:57:36 +01:00

View File

@@ -977,8 +977,11 @@ class set_export extends set_abstract
if (is_file($file)) 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( $file_xaccel = str_replace(
array( array(