From 827ce7998dacd3311e7f32ba5bac2db24cb493fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B8nstantine=20Kovalensky?= <45331093+kovalensky@users.noreply.github.com> Date: Sun, 28 Jan 2024 10:46:06 +0400 Subject: [PATCH] Add referrer "origin" policy to repository links (#1357) --- filelist.php | 8 ++++---- library/includes/page_footer.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/filelist.php b/filelist.php index 05b1374e9..cd4014a41 100644 --- a/filelist.php +++ b/filelist.php @@ -53,8 +53,8 @@ if (!is_file($file_path)) { $file_contents = file_get_contents($file_path); if ($bb_cfg['flist_max_files']) { - $filetree_pos = !empty($row['info_hash_v2']) ? strpos($file_contents, '9:file tree') : false; - $files_pos = !empty($row['info_hash']) ? strpos($file_contents, '5:files', $filetree_pos) : false; + $filetree_pos = $meta_v2 ? strpos($file_contents, '9:file tree') : false; + $files_pos = $meta_v1 ? strpos($file_contents, '5:files', $filetree_pos) : false; if ($filetree_pos) { $file_count = substr_count($file_contents, '6:length', $filetree_pos, ($files_pos ? ($files_pos - $filetree_pos) : null)); @@ -201,14 +201,14 @@ sup { ? BitTorrent Merkle Root is a hash of a file embedded in torrents with BitTorrent v2 support, tracker users can extract, calculate them, and download deduplicated torrents using desktop tools such as - Torrent Merkle Root Reader. + Torrent Merkle Root Reader. {$allFiles} -
Generated by TorrentPier
+Generated by TorrentPier