mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Minor improvements (#867)
This commit is contained in:
parent
fadce7a297
commit
87b497e32a
2 changed files with 3 additions and 2 deletions
|
@ -64,7 +64,7 @@ $passkey = ${$passkey_key} ?? null;
|
|||
// Verify request
|
||||
// Required params (info_hash, peer_id, port, uploaded, downloaded, left, passkey)
|
||||
if (!isset($info_hash)) {
|
||||
msg_die('info_hash does not exists');
|
||||
msg_die('info_hash does not exist');
|
||||
}
|
||||
if (!isset($peer_id) || strlen($peer_id) != 20) {
|
||||
msg_die('Invalid peer_id');
|
||||
|
|
|
@ -25,8 +25,9 @@ if (isset($_GET['?info_hash']) && !isset($_GET['info_hash'])) {
|
|||
$is_bt_v2 = null;
|
||||
$info_hash = isset($_GET['info_hash']) ? (string)$_GET['info_hash'] : null;
|
||||
|
||||
// Verify info_hash
|
||||
if (!isset($info_hash)) {
|
||||
msg_die('info_hash does not exists');
|
||||
msg_die('info_hash does not exist');
|
||||
}
|
||||
|
||||
// Check info_hash version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue