mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 14:23:35 -07:00
fix: handle potential empty hash
Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
This commit is contained in:
parent
ceb903ebcf
commit
aae6244018
1 changed files with 1 additions and 1 deletions
|
@ -1479,7 +1479,7 @@ void TorrentsController::setTagsAction()
|
|||
{
|
||||
requireParams({u"hashes"_s, u"tags"_s});
|
||||
|
||||
const QStringList hashes {params()[u"hashes"_s].split(u'|')};
|
||||
const QStringList hashes {params()[u"hashes"_s].split(u'|', Qt::SkipEmptyParts)};
|
||||
const QStringList tags {params()[u"tags"_s].split(u',', Qt::SkipEmptyParts)};
|
||||
|
||||
// Convert QStringList to TagSet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue