• Bug#1108869: unblock: qbittorrent/5.1.0-2 (4/4)

    From Christian Marillat@1:229/2 to All on Sun Jul 6 17:10:01 2025
    [continued from previous message]

    + void downloadTorrents(AddTorrentOption option = AddTorrentOption::Default);
    +- void openTorrentPages() const;
    ++ void openTorrentPages();
    + void copyTorrentURLs() const;
    + void copyTorrentDownloadLinks() const;
    + void copyTorrentNames() const;
    diff -Nru qbittorrent-5.1.0/debian/patches/9b29d37d210f28f46eb4758611d7b06f4603b9d1.patch qbittorrent-5.1.0/debian/patches/9b29d37d210f28f46eb4758611d7b06f4603b9d1.patch
    --- qbittorrent-5.1.0/debian/patches/9b29d37d210f28f46eb4758611d7b06f4603b9d1.patch 1970-01-01 01:00:00.000000000 +0100
    +++ qbittorrent-5.1.0/debian/patches/9b29d37d210f28f46eb4758611d7b06f4603b9d1.patch 2025-07-06 16:39:44.000000000 +0200
    @@ -0,0 +1,37 @@
    +From 9b29d37d210f28f46eb4758611d7b06f4603b9d1 Mon Sep 17 00:00:00 2001
    +From: Chocobo1 <[email protected]>
    +Date: Mon, 30 Jun 2025 01:39:03 +0800
    +Subject: [PATCH] WebAPI: Trim leading whitespaces on Run External Program
    + fields
    +
    +Hacked qbt instances may contain malicious script placed in Run External Program and the script
    +will attempt to hide itself by adding a lot whitespaces at the start of the command string.
    +Users may mistake the field of being empty but is actually not.
    +So trim the leading whitespaces to easily expose the malicious script.
    +
    +Note that GUI already trim the fields and only WebAPI doesn't trim them. This patch will unify
    +the behavior.
    +Related: https://github.com/qbittorrent/docker-qbittorrent-no