Remove html entities for file names (#1094)

This commit is contained in:
Cønstantine Kovalensky 2023-11-14 10:47:10 +04:00 committed by GitHub
commit dc3cd6ec51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<br /><br />";