From b859834eec0f3a11bcf6e4f1b1e2bd1aacad4d77 Mon Sep 17 00:00:00 2001 From: HamletDuFromage <61667930+HamletDuFromage@users.noreply.github.com> Date: Fri, 25 Jul 2025 21:40:16 +0200 Subject: [PATCH] don't check for ancient classic style new lines in setComment --- src/webui/api/torrentscontroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/api/torrentscontroller.cpp b/src/webui/api/torrentscontroller.cpp index 5a087f87b..7eec41e00 100644 --- a/src/webui/api/torrentscontroller.cpp +++ b/src/webui/api/torrentscontroller.cpp @@ -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());