mirror of
https://github.com/knadh/listmonk.git
synced 2026-02-19 03:33:00 +08:00
Fix tx handler incorrectly sanitizing subscriber_emails[]. Closes #2726.
This commit is contained in:
parent
cdf0a5c153
commit
b7e8b1ee1f
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ func (a *App) validateTxMessage(m models.TxMessage) (models.TxMessage, error) {
|
|||
}
|
||||
|
||||
for n, email := range m.SubscriberEmails {
|
||||
if m.SubscriberEmail != "" {
|
||||
if email != "" {
|
||||
em, err := a.importer.SanitizeEmail(email)
|
||||
if err != nil {
|
||||
return m, echo.NewHTTPError(http.StatusBadRequest, err.Error())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue