From 2e4129927d1465e162bb1fa28cc363c643925346 Mon Sep 17 00:00:00 2001 From: ghost Date: Fri, 3 Nov 2023 13:59:50 +0200 Subject: [PATCH] set app IDs in the filename postfix, remove lowercase --- src/Controller/TorrentController.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Controller/TorrentController.php b/src/Controller/TorrentController.php index 2fdbe6b..5bc0b04 100644 --- a/src/Controller/TorrentController.php +++ b/src/Controller/TorrentController.php @@ -2416,14 +2416,10 @@ class TorrentController extends AbstractController $response->headers->set( 'Content-Disposition', sprintf( - 'attachment; filename="%s#%s.%s.torrent";', - mb_strtolower( - $this->getParameter('app.name') - ), - $torrent->getId(), - mb_strtolower( - $file->getName() - ) + 'attachment; filename="%s [%s#%s].torrent";', + $file->getName(), + $this->getParameter('app.name'), + $torrent->getId() ) );