diff --git a/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingGenerator.php b/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingGenerator.php index 4a2d5f878d..7330645053 100644 --- a/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingGenerator.php +++ b/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingGenerator.php @@ -66,8 +66,8 @@ class XSendFileMappingGenerator extends Command private function computeMapping($paths) { return array_merge(array( - array('mount-point' => 'lazaret', 'directory' => $this->container['root.path'] . '/tmp/lazaret'), - array('mount-point' => 'download', 'directory' => $this->container['root.path'] . '/tmp/download'), + array('mount-point' => 'protected_lazaret', 'directory' => $this->container['root.path'] . '/tmp/lazaret'), + array('mount-point' => 'protected_download', 'directory' => $this->container['root.path'] . '/tmp/download'), ), array_map(array($this, 'pathsToConf'), array_unique($paths))); } diff --git a/lib/Alchemy/Phrasea/Controller/Prod/DoDownload.php b/lib/Alchemy/Phrasea/Controller/Prod/DoDownload.php index a3f8f700bb..e88aa133f4 100644 --- a/lib/Alchemy/Phrasea/Controller/Prod/DoDownload.php +++ b/lib/Alchemy/Phrasea/Controller/Prod/DoDownload.php @@ -57,7 +57,7 @@ class DoDownload implements ControllerProviderInterface * * return : HTML Response */ - $controllers->post('/{token}/get/', $this->call('downloadDocuments')) + $controllers->match('/{token}/get/', $this->call('downloadDocuments')) ->bind('document_download') ->assert('token', '[a-zA-Z0-9]{8,16}');