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

Commit

Permalink
Should fix encoding issue with PowerFS
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 26, 2016
1 parent 8e42238 commit aaf0ec8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/plugins/action.powerfs/PowerFSController.php
Expand Up @@ -28,6 +28,7 @@
use Pydio\Core\Controller\Controller;
use Pydio\Core\Services\LocaleService;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\TextEncoder;
use Pydio\Core\Utils\Vars\InputFilter;
use Pydio\Core\PluginFramework\Plugin;
use Pydio\Core\PluginFramework\PluginsService;
Expand Down Expand Up @@ -83,7 +84,8 @@ public function switchAction(ServerRequestInterface &$request, ResponseInterface
case "postcompress_download":

$archive = ApplicationState::getAjxpTmpDir() . DIRECTORY_SEPARATOR . $httpVars["ope_id"] . "_" . InputFilter::decodeSecureMagic($httpVars["archive_name"], InputFilter::SANITIZE_FILENAME);

// This is a real filename on a local FS => toStorageEncoding
$archive = TextEncoder::toStorageEncoding($archive);
$archiveName = $httpVars["archive_name"];
if (is_file($archive)) {
$fileReader = new \Pydio\Core\Http\Response\FileReaderResponse($archive);
Expand Down

0 comments on commit aaf0ec8

Please sign in to comment.