Skip to content

Commit 41e6a70

Browse files
WilliamFromTWfzs
authored andcommitted
encoded email's sender name with utf-8.
1 parent c010ca0 commit 41e6a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/gitblit/service/MailService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public Message createMessage(Mailing mailing) {
145145
if (StringUtils.isEmpty(fromAddress)) {
146146
fromAddress = "[email protected]";
147147
}
148-
InternetAddress from = new InternetAddress(fromAddress, mailing.from == null ? "Gitblit" : mailing.from);
148+
InternetAddress from = new InternetAddress(fromAddress, mailing.from == null ? "Gitblit" : mailing.from,"utf-8");
149149
message.setFrom(from);
150150

151151
Pattern validEmail = Pattern

0 commit comments

Comments
 (0)