Skip to content

Commit

Permalink
Fix wrong decode with quoted-printable (Issue mailhog#35: mailhog#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
hieunv-0998 committed Nov 11, 2020
1 parent 90d8934 commit 3fab4e3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
80 changes: 40 additions & 40 deletions assets/assets.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
if(contentTransferEncoding) {
switch (contentTransferEncoding.toLowerCase()) {
case 'quoted-printable':
content = content.replace(/=[\r\n]+/gm,"");
content = content.replace(/=\r\n/gm, "");
content = unescapeFromQuotedPrintableWithoutRFC2047(content, charset);
break;
case 'base64':
Expand Down

0 comments on commit 3fab4e3

Please sign in to comment.