mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Code re-formatting (#1225->6)
This commit is contained in:
parent
035c22f598
commit
68013e1610
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ $file_contents = file_get_contents($file_path);
|
|||
if ($bb_cfg['flist_max_files']) {
|
||||
$filetree_pos = strpos($file_contents, ':file tree');
|
||||
$files_pos = !empty($row['info_hash']) ? strpos($file_contents, ':files', $filetree_pos) : false;
|
||||
$file_count = substr_count($file_contents, ':length', $filetree_pos, ($files_pos ? ($files_pos - $filetree_pos) : null));
|
||||
$file_count = substr_count($file_contents, ':length', $filetree_pos, ($files_pos ? ($files_pos - $filetree_pos) : null));
|
||||
|
||||
if ($file_count > $bb_cfg['flist_max_files']) {
|
||||
http_response_code(410);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue