Browse Source

update torrent file name #11

main
ghost 1 year ago
parent
commit
dec2383a04
  1. 7
      src/Controller/TorrentController.php

7
src/Controller/TorrentController.php

@ -997,9 +997,10 @@ class TorrentController extends AbstractController @@ -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()
)

Loading…
Cancel
Save