diff --git a/models/attachment.go b/models/attachment.go index ba5378be..2e7d49b7 100644 --- a/models/attachment.go +++ b/models/attachment.go @@ -132,7 +132,7 @@ func (a *Attachment) ApplyTemplate(ptx PhishingTemplateContext) (io.Reader, erro if err != nil { return nil, err } - if processedAttachment == string(string(b)) { + if processedAttachment == string(b) { a.vanillaFile = true } return strings.NewReader(processedAttachment), nil