Skip to content

Commit

Permalink
WebAPI: return paths using platform-independent separator format
Browse files Browse the repository at this point in the history
PR #18118.
Closes #18096.
  • Loading branch information
glassez committed Dec 8, 2022
1 parent 6a4bb13 commit 65611cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webui/api/torrentscontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 65611cd

Please sign in to comment.