mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
don't check for ancient classic style new lines in setComment
This commit is contained in:
parent
1ed05c7d9e
commit
b859834eec
1 changed files with 1 additions and 1 deletions
|
@ -2155,7 +2155,7 @@ void TorrentsController::setCommentAction()
|
|||
throw APIError(APIErrorType::NotFound);
|
||||
|
||||
QString comment = params()[u"comment"_s].trimmed();
|
||||
comment.replace(QRegularExpression(u"\r?\n|\r"_s), u" "_s);
|
||||
comment.replace(QRegularExpression(u"\r?\n"_s), u" "_s);
|
||||
torrent->setComment(comment);
|
||||
|
||||
setResult(QString());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue