Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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.
    #1106327

    Hey 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,
    Victoria

    #1106349

    I 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 &amp ; 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.
    #1107470

    Hi,

    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ünter

    #1109855

    Hi,

    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ünter

    #1109859

    Excellent, thanks.

    #1109869

    Hi,

    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ünter

    #1109894

    Thanks!

    #1109948

    Hi,

    Glad we could help you.

    Enjoy the theme and feel free to come back when you need further assistance.
    Have a nice day.

    Best regards,
    Günter

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Bug in Site Name Display in Emails’ is closed to new replies.