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
$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()
) )

Loading…
Cancel
Save