From dd4adecd119e5dbada840ae07360a88721924452 Mon Sep 17 00:00:00 2001 From: "Stiliyan Tonev (Bark)" Date: Thu, 5 Jun 2025 09:53:55 +0300 Subject: [PATCH] refact: Replace '*' with 'all' before passing to 'applyToTorrents' --- src/webui/api/torrentscontroller.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/webui/api/torrentscontroller.cpp b/src/webui/api/torrentscontroller.cpp index e9530a2b6..b0712ffa2 100644 --- a/src/webui/api/torrentscontroller.cpp +++ b/src/webui/api/torrentscontroller.cpp @@ -1181,7 +1181,10 @@ void TorrentsController::removeTrackersAction() { requireParams({u"hash"_s, u"urls"_s}); - const QStringList idStrings = params()[u"hash"_s].split(u'|', Qt::SkipEmptyParts); + QString hash = params()[u"hash"_s]; + if (hash == u"*"_s) + hash = u"all"_s; + const QStringList idStrings = hash.split(u'|', Qt::SkipEmptyParts); const QStringList urlsParam = params()[u"urls"_s].split(u'|', Qt::SkipEmptyParts); QStringList urls;