Skip to content

fix: export emails to CSV is not working#28

Open
sapayth wants to merge 1 commit intoweMail:developfrom
sapayth:fix/export_emails_to_csv_not_working
Open

fix: export emails to CSV is not working#28
sapayth wants to merge 1 commit intoweMail:developfrom
sapayth:fix/export_emails_to_csv_not_working

Conversation

@sapayth
Copy link
Copy Markdown
Collaborator

@sapayth sapayth commented Apr 24, 2026

Summary

Fixes the "Save Emails to CSV File" tool, which was producing an empty file (only the header row, no subscriber data). The export now correctly writes every selected subscriber, and the downloaded file is no longer corrupted by unrelated PHP notices or HTML-encoded characters.

Security Considerations

  • Email addresses submitted for export are now individually validated and sanitized before being processed, in addition to the existing capability and nonce checks.
  • Output is isolated so the CSV file contains only subscriber data, preventing incidental content from other plugins or themes from leaking into the download.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant