Unescaped escape characters in the subject line of emails so that all characters appear properly
Этот коммит содержится в:
@@ -11,6 +11,7 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"net/mail"
|
"net/mail"
|
||||||
"net/smtp"
|
"net/smtp"
|
||||||
|
"html"
|
||||||
)
|
)
|
||||||
|
|
||||||
func CheckMailSettings() *model.AppError {
|
func CheckMailSettings() *model.AppError {
|
||||||
@@ -84,7 +85,7 @@ func SendMail(to, subject, body string) *model.AppError {
|
|||||||
headers := make(map[string]string)
|
headers := make(map[string]string)
|
||||||
headers["From"] = fromMail.String()
|
headers["From"] = fromMail.String()
|
||||||
headers["To"] = toMail.String()
|
headers["To"] = toMail.String()
|
||||||
headers["Subject"] = subject
|
headers["Subject"] = html.UnescapeString(subject)
|
||||||
headers["MIME-version"] = "1.0"
|
headers["MIME-version"] = "1.0"
|
||||||
headers["Content-Type"] = "text/html"
|
headers["Content-Type"] = "text/html"
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user