Browse Source

set app IDs in the filename postfix, remove lowercase

main
ghost 1 year ago
parent
commit
2e4129927d
  1. 12
      src/Controller/TorrentController.php

12
src/Controller/TorrentController.php

@ -2416,14 +2416,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#%s].torrent";',
mb_strtolower( $file->getName(),
$this->getParameter('app.name') $this->getParameter('app.name'),
), $torrent->getId()
$torrent->getId(),
mb_strtolower(
$file->getName()
)
) )
); );

Loading…
Cancel
Save