Browse Source

WebAPI: return paths using platform-independent separator format

PR #18118.
Closes #18096.
adaptive-webui-19844
Vladimir Golovnev 2 years ago committed by GitHub
parent
commit
679e3b8bea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/webui/api/torrentscontroller.cpp

3
src/webui/api/torrentscontroller.cpp

@ -577,7 +577,8 @@ void TorrentsController::filesAction() @@ -577,7 +577,8 @@ void TorrentsController::filesAction()
{KEY_FILE_PRIORITY, static_cast<int>(priorities[index])},
{KEY_FILE_SIZE, torrent->fileSize(index)},
{KEY_FILE_AVAILABILITY, fileAvailability[index]},
{KEY_FILE_NAME, torrent->filePath(index).toString()}
// need to provide paths using a platform-independent separator format
{KEY_FILE_NAME, torrent->filePath(index).data()}
};
const BitTorrent::TorrentInfo::PieceRange idx = info.filePieces(index);

Loading…
Cancel
Save