mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Merge pull request #4341 from pmzqla/delete-label
WebUI: Allow to remove the label assigned to a torrent
This commit is contained in:
commit
5e0252c152
1 changed files with 1 additions and 1 deletions
|
@ -724,7 +724,7 @@ void WebApplication::action_command_setLabel()
|
|||
|
||||
QStringList hashes = request().posts["hashes"].split("|");
|
||||
QString label = request().posts["label"].trimmed();
|
||||
if (!Utils::Fs::isValidFileSystemName(label)) {
|
||||
if (!Utils::Fs::isValidFileSystemName(label) && !label.isEmpty()) {
|
||||
status(400, "Labels must not contain special characters");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue