diff --git a/library/includes/file_list_v2.php b/library/includes/file_list_v2.php index 6b7174a91..c4257e06d 100644 --- a/library/includes/file_list_v2.php +++ b/library/includes/file_list_v2.php @@ -17,7 +17,7 @@ $row = DB()->fetch_row($sql); if (empty($row) || empty($row['physical_filename'])) { http_response_code(404); - die('Topic id is missing'); + die('Valid topic id is missing'); } if (empty($row['info_hash_v2'])) { @@ -36,6 +36,7 @@ $file_list = $torrent->fileTreeTable($tor['info']['file tree']); $date = ''; $name = htmlCHR($tor['info']['name'] ?? ''); +$client = htmlCHR(substr($tor['created by'], 0, 20) ?? 'unknown'); if (isset($tor['creation date']) && is_numeric($tor['creation date'])) { $date = date("d M Y | G:i:s T", $tor['creation date']); } @@ -84,7 +85,10 @@ echo "
Created by: $client
+Path | Size | Hash ? |
---|
Generated by TorrentPier
+Generated by TorrentPier