Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email Titles can contain escaped HTML Entities #8

Open
mattyrob opened this issue Apr 18, 2021 · 0 comments
Open

Email Titles can contain escaped HTML Entities #8

mattyrob opened this issue Apr 18, 2021 · 0 comments

Comments

@mattyrob
Copy link

Emails sent with backup files attached use a standard subject (currently from line 1084 of the code):
get_bloginfo( 'name' ) . ' ' . __( 'Database Backup', 'wp-db-backup' )

The get_bloginfo() call is essentially a wrapper for get_option( 'blogname' ) and therefore any HTML entities will be encoded when returned from the database.

For display on a webpage this make no difference as the browser will display the same output to the user, but in an Email characters like ampersands will remain encoded as & rather than displaying as &.

A possible fix for this is to pass the email subject variable through html_entity_decode().

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

No branches or pull requests

1 participant