mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-10 00:46:48 -06:00
WebAPI: Do not wrap result if offset is invalid
Closes #22158. PR #22174.
This commit is contained in:
parent
1043bea896
commit
ad9100ac07
@ -421,8 +421,6 @@ void TorrentsController::infoAction()
|
|||||||
// normalize offset
|
// normalize offset
|
||||||
if (offset < 0)
|
if (offset < 0)
|
||||||
offset = size + offset;
|
offset = size + offset;
|
||||||
if ((offset >= size) || (offset < 0))
|
|
||||||
offset = 0;
|
|
||||||
// normalize limit
|
// normalize limit
|
||||||
if (limit <= 0)
|
if (limit <= 0)
|
||||||
limit = -1; // unlimited
|
limit = -1; // unlimited
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user