mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Fix #1290 : Download xith xsendfile activated fails
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
|
||||
|
@@ -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}');
|
||||
|
||||
|
Reference in New Issue
Block a user