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

Commit aaf0ec8

Browse files
committed
Should fix encoding issue with PowerFS
1 parent 8e42238 commit aaf0ec8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/plugins/action.powerfs/PowerFSController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
use Pydio\Core\Controller\Controller;
2929
use Pydio\Core\Services\LocaleService;
3030
use Pydio\Core\Services\ApplicationState;
31+
use Pydio\Core\Utils\TextEncoder;
3132
use Pydio\Core\Utils\Vars\InputFilter;
3233
use Pydio\Core\PluginFramework\Plugin;
3334
use Pydio\Core\PluginFramework\PluginsService;
@@ -83,7 +84,8 @@ public function switchAction(ServerRequestInterface &$request, ResponseInterface
8384
case "postcompress_download":
8485

8586
$archive = ApplicationState::getAjxpTmpDir() . DIRECTORY_SEPARATOR . $httpVars["ope_id"] . "_" . InputFilter::decodeSecureMagic($httpVars["archive_name"], InputFilter::SANITIZE_FILENAME);
86-
87+
// This is a real filename on a local FS => toStorageEncoding
88+
$archive = TextEncoder::toStorageEncoding($archive);
8789
$archiveName = $httpVars["archive_name"];
8890
if (is_file($archive)) {
8991
$fileReader = new \Pydio\Core\Http\Response\FileReaderResponse($archive);

0 commit comments

Comments
 (0)