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(
'Content-Disposition',
sprintf(
'attachment; filename="%s.%s.%s.torrent";',
$this->getParameter('app.name'),
$torrent->getId(),
'attachment; filename="%s.%s.torrent";',
mb_strtolower(
$this->getParameter('app.name')
),
mb_strtolower(
$file->getName()
)