sendmail: use ParseMultipartForm
Signed-off-by: Nicolas Froger <nicolas@kektus.xyz>
This commit is contained in:
parent
a23642af34
commit
1ac601316d
|
@ -217,7 +217,7 @@ func MuxSecReCaptchaHandler(next http.Handler) http.Handler {
|
|||
|
||||
// SendMail handles HTTP request to send email
|
||||
func SendMail(httpResp http.ResponseWriter, httpReq *http.Request) {
|
||||
httpReq.ParseForm()
|
||||
httpReq.ParseMultipartForm(1 << 20)
|
||||
|
||||
contactRequest := ContactRequest{
|
||||
Name: httpReq.FormValue("name"),
|
||||
|
|
Loading…
Reference in New Issue