From dc3cd6ec51605bbf6ddc3bbe09809fb683df35b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B8nstantine=20Kovalensky?= <45331093+kovalensky@users.noreply.github.com> Date: Tue, 14 Nov 2023 10:47:10 +0400 Subject: [PATCH] Remove html entities for file names (#1094) --- src/Legacy/Torrent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Legacy/Torrent.php b/src/Legacy/Torrent.php index 82cccc3b4..f47150a91 100644 --- a/src/Legacy/Torrent.php +++ b/src/Legacy/Torrent.php @@ -599,7 +599,7 @@ class Torrent // Send torrent $output = \Arokettu\Bencode\Bencode::encode($tor); - $dl_fname = wbr($topic_title) . ' [' . $bb_cfg['server_name'] . '-' . $topic_id . ']' . '.torrent'; + $dl_fname = html_entity_decode($topic_title, ENT_QUOTES, 'UTF-8') . ' [' . $bb_cfg['server_name'] . '-' . $topic_id . ']' . '.torrent'; if (!empty($_COOKIE['explain'])) { $out = "attach path: $filename

";