41 lines
1.5 KiB
Diff
41 lines
1.5 KiB
Diff
From c80442ead26f4532d139c750206e0bed04621b88 Mon Sep 17 00:00:00 2001
|
|
From: Alexandros Frantzis <alexandros.frantzis@collabora.com>
|
|
Date: Wed, 11 May 2022 17:12:52 +0300
|
|
Subject: [PATCH 44/49] Use CRLF line delimiter for text/uri-list data
|
|
|
|
According to RFC 2483, which describes text/uri-list, the line delimiter
|
|
must be CRLF (instead of the currently used LF). Some applications
|
|
strictly expect the CRLF delimiter and fail to properly parse the
|
|
uri-list otherwise (e.g., WineX11/XWayland).
|
|
|
|
https://datatracker.ietf.org/doc/html/rfc2483
|
|
|
|
5. The text/uri-list Internet Media Type
|
|
The format of text/uri-list resources is:
|
|
3) As for all text/* formats, lines are terminated with a CRLF pair.
|
|
|
|
Pick-to: 6.4 6.3 6.2 5.15
|
|
Change-Id: I7c062224a9060028ab6293fdf172692ade28cca5
|
|
Reviewed-by: David Edmundson <davidedmundson@kde.org>
|
|
(cherry picked from commit bd5b0a804b91b9fbd0ce44d5d6765e07d0a50b4f)
|
|
---
|
|
src/shared/qwaylandmimehelper.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/shared/qwaylandmimehelper.cpp b/src/shared/qwaylandmimehelper.cpp
|
|
index 051a91dc..e2fe1928 100644
|
|
--- a/src/shared/qwaylandmimehelper.cpp
|
|
+++ b/src/shared/qwaylandmimehelper.cpp
|
|
@@ -74,7 +74,7 @@ QByteArray QWaylandMimeHelper::getByteArray(QMimeData *mimeData, const QString &
|
|
QList<QUrl> urls = mimeData->urls();
|
|
for (int i = 0; i < urls.count(); ++i) {
|
|
content.append(urls.at(i).toEncoded());
|
|
- content.append('\n');
|
|
+ content.append("\r\n");
|
|
}
|
|
} else {
|
|
content = mimeData->data(mimeType);
|
|
--
|
|
2.37.3
|
|
|