summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwilliam <william.fromtw@gmail.com>2017-03-02 14:06:22 +0800
committerFlorian Zschocke <fzs@users.noreply.github.com>2019-06-16 10:36:28 +0200
commit41e6a701953c6f3ec0c4b2375426e4205a1c6a00 (patch)
tree265def1e5b1febcdc789bb30ee0d4837f267fc61 /src
parentc010ca0ae8ff24aaf343afe7301447fd23c1d44e (diff)
downloadgitblit-41e6a701953c6f3ec0c4b2375426e4205a1c6a00.tar.gz
gitblit-41e6a701953c6f3ec0c4b2375426e4205a1c6a00.zip
encoded email's sender name with utf-8.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/gitblit/service/MailService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/service/MailService.java b/src/main/java/com/gitblit/service/MailService.java
index 58acc9c0..a5cd46d4 100644
--- a/src/main/java/com/gitblit/service/MailService.java
+++ b/src/main/java/com/gitblit/service/MailService.java
@@ -145,7 +145,7 @@ public class MailService implements Runnable {
if (StringUtils.isEmpty(fromAddress)) {
fromAddress = "gitblit@gitblit.com";
}
- InternetAddress from = new InternetAddress(fromAddress, mailing.from == null ? "Gitblit" : mailing.from);
+ InternetAddress from = new InternetAddress(fromAddress, mailing.from == null ? "Gitblit" : mailing.from,"utf-8");
message.setFrom(from);
Pattern validEmail = Pattern