-
AuthorPosts
-
June 1, 2019 at 2:03 pm #1106086
Hello,
Your “Contact Form” module does not convert HTML entities in the Site Name. If the Site Name is “Gadgets & Things”, the “From” text says “Gadgets &[amp;] (brackets added to prevent conversion in the forum) Things” in the recipient’s email inbox. I hope you get a chance to address this in the next patch.
Keep up the great work!
Thanks,
Andy- This topic was modified 5 years, 5 months ago by betaphase.
June 2, 2019 at 11:16 am #1106327Hey betaphase,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Could you please attach some screenshots of the issue?
Best regards,
VictoriaJune 2, 2019 at 12:40 pm #1106349I think you misunderstand. This is a bug report, not a support request. There’s nothing for you to see in my admin area. Let me try to explain again:
The Enfold Contact Form module pulls the Site Title as RAW DATA from the database to use as the Sender (FROM). It doesn’t convert it to HTML entities, so if the Site Title is
“Wings & Things”
it shows up as
“Wings & ; Things” (space added before semicolon to allow display of RAW data)
in the recipient’s inbox.
- This reply was modified 5 years, 5 months ago by betaphase.
June 5, 2019 at 10:50 am #1107470Hi,
Thank you for using Enfold.
Thanks for reporting this. I added it to our dv repo to fix it asap.
I will come back when we have the solution.Best regards,
GünterJune 13, 2019 at 1:23 pm #1109855Hi,
Temporarily you can use the filter avf_form_subject or in file enfold\framework\php\class-form-generator.php funtion send() around line 978:
$subject = apply_filters("avf_form_subject", $subject, $new_post, $this->form_params);
Insert after this line:
$subject = htmlspecialchars_decode( $subject );
Will be part of the next update.
If you need helpwith this let us know and we can do it for you.
Best regards,
GünterJune 13, 2019 at 1:39 pm #1109859Excellent, thanks.
June 13, 2019 at 2:42 pm #1109869Hi,
And around line 1095:
$header .= 'From: ' . get_bloginfo('name') .' <'. urldecode( $autoresponder_email ) . "> \r\n";
replace with:
$from_prefix = get_bloginfo('name'); $from_prefix = apply_filters( 'avf_form_autoresponder_email_from_prefix', $from_prefix, $new_post, $this->form_params ); $from_prefix = htmlspecialchars_decode( $from_prefix ); $header .= 'From: ' . $from_prefix .' <'. urldecode( $autoresponder_email ) . "> \r\n";
Best regards,
GünterJune 13, 2019 at 3:55 pm #1109894Thanks!
June 13, 2019 at 5:46 pm #1109948 -
AuthorPosts
- The topic ‘Bug in Site Name Display in Emails’ is closed to new replies.