mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
External program not running if torrent name/folder has ampersands #11689
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#11689
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RivenSkaye on GitHub (Feb 2, 2021).
qBittorrent version and Operating System
qBT 4.3.1 on Windows 10 (10.0.1xxxx)
If on linux, libtorrent-rasterbar and Qt version
N/A
What is the problem
External command/program is not being run properly if the torrent name and/or content directory contain ampersands (&).
Copy-pasting the line from the log file into either the Run dialog or into CMD.exe works just fine, the command itself is just sending some info about the torrent to a script
C:\Utilities\mkpls.cmd "%F" "%L" %C(the script internally runs a few commands to create a playlist file based on the category and the amount of files in the torrent). Works on most, if not all torrents except for torrents where the name contains an ampersand. Can provide the torrent and content folder name if needed, it downloads just fine.What is the expected behavior
Command runs as it would through either CMD.exe or the Run dialog
Steps to reproduce
Download any torrent that produces ampersands in its content path and set up the client to pass that on to a script.
Not quoting causes the expected problems of the string being parsed as several commands, quoting causes silent failure.
Extra info(if any)
Have not had any other issues with regards to content folder names, but I can imagine certain special characters can cause platform-specific issues. This is not yet certain.
@luzpaz commented on GitHub (Jun 11, 2023):
Related to #18457
@RivenSkaye commented on GitHub (Jun 11, 2023):
This is not related as far as I can tell, since this seems to be a problem with parsing and escaling text so an external runner can properly process it. Which has nothing to do with actions taken when qBT itself errors
@luzpaz commented on GitHub (Aug 10, 2023):
@Chocobo1 is this issue impacted by
a427b9228d?@Chocobo1 commented on GitHub (Aug 10, 2023):
That is not related.