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

User welcome e-mail HTML tags get removed #14

Open
mrjohnmc opened this issue Sep 17, 2021 · 0 comments
Open

User welcome e-mail HTML tags get removed #14

mrjohnmc opened this issue Sep 17, 2021 · 0 comments

Comments

@mrjohnmc
Copy link

Hello! :)

Great plugin so far, just a small bug I found in the newest version...

Issue description

After creating a custom HTML template for the user welcome e-mail, the typed HTML tags are not used in the final e-mail. The preview function works properly tho.

I tracked the issue down to the file 'includes/filters-wp.php' @ Line: 162
$user_email = htmlspecialchars_decode( stripslashes( $user_email ) );

Possible Solution

Remove line 162 and sanitize possible user input before it gets mixed into the template.
Beware, the same function/method is used on for other registration types on line 178, 189 and 200 too and may cause the same negative effect.

Version used

3.0

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