Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Test also for X_ACCELREDIRECT parameter to disable the zip automatic …
Browse files Browse the repository at this point in the history
…deletion.
  • Loading branch information
cdujeu committed Oct 20, 2013
1 parent a3f2c0d commit 4324400
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/plugins/access.fs/class.fsAccessDriver.php
Expand Up @@ -232,7 +232,8 @@ public function switchAction($action, $httpVars, $fileVars)
$file = AJXP_Utils::getAjxpTmpDir()."/".($loggedUser?$loggedUser->getId():"shared")."_".time()."tmpDownload.zip";
$zipFile = $this->makeZip($selection->getFiles(), $file, empty($dir)?"/":$dir);
if(!$zipFile) throw new AJXP_Exception("Error while compressing");
if(!$this->getFilteredOption("USE_XSENDFILE", $this->repository->getId())){
if(!$this->getFilteredOption("USE_XSENDFILE", $this->repository->getId())
&& !$this->getFilteredOption("USE_XACCELREDIRECT", $this->repository->getId())){
register_shutdown_function("unlink", $file);
}
$localName = ($base==""?"Files":$base).".zip";
Expand Down

0 comments on commit 4324400

Please sign in to comment.