This commit is contained in:
Hyleus
2018-01-04 21:45:40 +01:00
parent 65e64c6149
commit 97fb9c4752
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ class AnnounceController extends Controller
$ipv6 = $request->has('ipv6') ? bin2hex($request->get('ipv6')) : null;
$no_peer_id = ($request->has('no_peer_id') && $request->get('no_peer_id') == 1) ? true : false;
// If User Client Is Sending Negitive Values Return Error to Client
// If User Client Is Sending Negative Values Return Error to Client
if ($uploaded < 0 || $downloaded < 0 || $left < 0) {
return response(Bencode::bencode(['failure reason' => 'Data from client is negative']), 200, ['Content-Type' => 'text/plain']);
}
+1 -1
View File
@@ -260,7 +260,7 @@ class BonusController extends Controller
return Redirect::route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])->with(Toastr::error('You Cannot Tip Yourself!', 'Bro!', ['options']));
}
if ($tip_amount <= 0) {
return Redirect::route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])->with(Toastr::error('You Cannot Tip A Negitive Amount!', 'Bro!', ['options']));
return Redirect::route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])->with(Toastr::error('You Cannot Tip A Negative Amount!', 'Bro!', ['options']));
}
$uploader->seedbonus += $tip_amount;
$uploader->save();