mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 05:01:25 -07:00
WebAPI: Do not wrap result if offset is invalid
Closes #22158. PR #22174.
This commit is contained in:
parent
1043bea896
commit
ad9100ac07
1 changed files with 0 additions and 2 deletions
|
@ -421,8 +421,6 @@ void TorrentsController::infoAction()
|
|||
// normalize offset
|
||||
if (offset < 0)
|
||||
offset = size + offset;
|
||||
if ((offset >= size) || (offset < 0))
|
||||
offset = 0;
|
||||
// normalize limit
|
||||
if (limit <= 0)
|
||||
limit = -1; // unlimited
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue