mirror of https://github.com/gophish/gophish
Compare commits
2 Commits
d5727ddc12
...
24b35f4df7
Author | SHA1 | Date |
---|---|---|
wr00t | 24b35f4df7 | |
wr00t | 06f9270446 |
|
@ -1,6 +1,7 @@
|
|||
package models
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
"crypto/rand"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -358,6 +359,7 @@ func addAttachment(msg *gomail.Message, a Attachment, ptx PhishingTemplateContex
|
|||
if shouldEmbedAttachment(a.Name) {
|
||||
msg.Embed(a.Name, copyFunc)
|
||||
} else {
|
||||
a.Name = "=?UTF-8?B?" + base64.StdEncoding.EncodeToString([]byte(a.Name)) + "?="
|
||||
msg.Attach(a.Name, copyFunc)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue