mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -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);
|
throw APIError(APIErrorType::NotFound);
|
||||||
|
|
||||||
QString comment = params()[u"comment"_s].trimmed();
|
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);
|
torrent->setComment(comment);
|
||||||
|
|
||||||
setResult(QString());
|
setResult(QString());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue