-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Encode Subject header correctly per RFC 2047
Thee're some differences between RFC 2047 which we should be used to encode header value and RFC 2045 for body: 1) Use CRLF+SPACE for soft line break. 2) SPACE and TAB should always be encoded. 3) Multiple encoded text should be used Did manual test with FAR file manager w/ Observer plugin and 7-Zip w/ eDecoder plugin. Bug: 794835 Change-Id: I5b87b7392d2208dd58bf512c7ee59c87bc32a85a Reviewed-on: https://chromium-review.googlesource.com/835009 Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Jian Li <jianli@chromium.org> Cr-Commit-Position: refs/heads/master@{#530371}
- Loading branch information
1 parent
2ba21bc
commit a97e4b2
Showing
5 changed files
with
223 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
third_party/WebKit/Source/core/testing/data/mhtml/soft_line_break.mht
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From: <Saved by Blink> | ||
Subject: =?utf-8?Q?012345678901234567890123456789012345678901234567890 | ||
1234567890123456789012345678901234567890123456789 | ||
=3D=E2=98=9D=F0=9F=8F=BB?= | ||
Date: Thu, 4 Oct 2017 21:18:18 -0000 | ||
MIME-Version: 1.0 | ||
Content-Type: multipart/related; | ||
type="text/html"; | ||
boundary="----MultipartBoundary--e77OylKXx1PBMEF67x53AwnQLf4DUmwdt037X9MjPK----" | ||
|
||
------MultipartBoundary--e77OylKXx1PBMEF67x53AwnQLf4DUmwdt037X9MjPK---- | ||
Content-Type: text/html | ||
Content-ID: <frame-31894-fca076b5-329b-490d-a9ee-6974bf0c4bcd@mhtml.blink> | ||
Content-Transfer-Encoding: quoted-printable | ||
Content-Location: http://localhost/soft_line_break.html | ||
|
||
<html> | ||
<head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset= | ||
=3DUTF-8"> | ||
</head> | ||
<body> | ||
<div id=3D"AVeryLongID01234567890123456789012345678901234567890123456= | ||
7890End"> | ||
</div> | ||
</body> | ||
</html> | ||
------MultipartBoundary--e77OylKXx1PBMEF67x53AwnQLf4DUmwdt037X9MjPK------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters