replace_vars() problem in HTML Emails for User Registration
-
Hello, there is a logic problem in the output of HTML emails when a percent symbol exists in the template. In the /wp-content/plugins/theme-my-login/modules/custom-email/custom-email.php file, the function replace_vars() matches all text between % symbols, so if you have an inline style of width:100%, then content will be lost.
I recommend changing
preg_match_all( ‘/%([^%]*)%/’, $input, $matches );
to
preg_match_all( ‘/%([a-zA-Z0-9-_]*)%/’, $input, $matches );as the variables only contain letters, numbers and underscores.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘replace_vars() problem in HTML Emails for User Registration’ is closed to new replies.