update torrent file name #11

This commit is contained in:
ghost 2023-10-09 01:26:15 +03:00
parent 69214e8058
commit dec2383a04

View File

@ -997,9 +997,10 @@ class TorrentController extends AbstractController
$response->headers->set( $response->headers->set(
'Content-Disposition', 'Content-Disposition',
sprintf( sprintf(
'attachment; filename="%s.%s.%s.torrent";', 'attachment; filename="%s.%s.torrent";',
$this->getParameter('app.name'), mb_strtolower(
$torrent->getId(), $this->getParameter('app.name')
),
mb_strtolower( mb_strtolower(
$file->getName() $file->getName()
) )