Unescaped escape characters in the subject line of emails so that all characters appear properly

This commit is contained in:
Reed Garmsen
2015-06-22 12:25:46 -07:00
parent e3a662a842
commit 94390236fd

View File

@@ -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"