only use constant strings in string formatting

builds with go1.24rc1 fail on these.
only the case in smtpserver could be triggered externally.
This commit is contained in:
Mechiel Lukkien
2024-12-14 09:38:56 +01:00
parent 5320ec1c5b
commit d082aaada8
4 changed files with 10 additions and 10 deletions

View File

@ -3471,7 +3471,7 @@ func (c *conn) deliver(ctx context.Context, recvHdrFor func(string) string, msgW
code = smtp.C554TransactionFailed
}
lines = append(lines, "multiple errors")
xsmtpErrorf(code, secode, !serverError, strings.Join(lines, "\n"))
xsmtpErrorf(code, secode, !serverError, "%s", strings.Join(lines, "\n"))
}
// Generate one DSN for all failed recipients.
if len(deliverErrors) > 0 {