Opened 5 years ago
Closed 5 years ago
#49121 closed defect (bug) (worksforme)
Decode more HTML entities for the blogname sent in an email
Reported by: | jensdavidsson | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 5.4 |
Component: | Keywords: | reporter-feedback | |
Focuses: | Cc: |
Description
This concerns newly-registered users that are receiving email notifications.
The function wp_new_user_notification() should take more HTML entities in consideration when decoding the blogname value.
Attachments (3)
Change History (6)
#2
@
5 years ago
- Keywords reporter-feedback added
Welcome @jensdavidsson and thank you for reporting!
I followed your instructions and set my site title to “My WP Site ää”:
Then I checked how it is stored in the database, and I found it’s not encoded to ä. Instead, it’s just a regular character:
Then I went on and attempted to create an account, and the email I got got a subject like “[My WP Site ää] Login Details” which is correct. I’m testing on vanilla WordPress 5.3.2.
This makes me think the problem may be not in sending emails, but in the way the site title is stored on your site. Would you mind elaborating a bit more on how did you run into this problem? E.g. Which WordPress version do you use? Do you have any plugins installed? How did you check ä is being encoded as ä in the database?
How to reproduce the bug
Set the blogname to something that contains the special character ä. That same character will be encoded to ä when saved, but not properly decoded when sent in the email.