diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-06-22 12:25:46 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-06-22 12:25:46 -0700 |
commit | 94390236fd75c2b1f70519bc2e44f70e00b8a81b (patch) | |
tree | 461fb8ad8f612bfc6ca8bff02d48bddde3b4040c /utils | |
parent | e3a662a842f5012c58215f1ede771f491bb2dc48 (diff) | |
download | chat-94390236fd75c2b1f70519bc2e44f70e00b8a81b.tar.gz chat-94390236fd75c2b1f70519bc2e44f70e00b8a81b.tar.bz2 chat-94390236fd75c2b1f70519bc2e44f70e00b8a81b.zip |
Unescaped escape characters in the subject line of emails so that all characters appear properly
Diffstat (limited to 'utils')
-rw-r--r-- | utils/mail.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/mail.go b/utils/mail.go index 2fb7f801d..3cd37ffef 100644 --- a/utils/mail.go +++ b/utils/mail.go @@ -11,6 +11,7 @@ import ( "net" "net/mail" "net/smtp" + "html" ) func CheckMailSettings() *model.AppError { @@ -84,7 +85,7 @@ func SendMail(to, subject, body string) *model.AppError { headers := make(map[string]string) headers["From"] = fromMail.String() headers["To"] = toMail.String() - headers["Subject"] = subject + headers["Subject"] = html.UnescapeString(subject) headers["MIME-version"] = "1.0" headers["Content-Type"] = "text/html" |